【发布时间】:2020-01-18 16:37:27
【问题描述】:
我知道我提出的问题与其他问题相似,但似乎并不适用。
我正在使用delphi 10.3
我想在控制台应用程序中连续写两个文本,但是我希望它们分开颜色
writeln('yes just give me a minute, i need to talk to the manager'); {i want this in the default color}
writeln('Oi Dave we got another thick one shall i just pass him through as self employed'); {i want this to be in red}
writeln('Dont worry u dont have to complete this one') {and this one back to the default color}
【问题讨论】:
-
我觉得你需要SetConsoleTextAttribute
-
对不起,你能解释一下如何
-
这里是控制台应用程序的帮助库:rvelthuis.de/programs/console.html