[fpc-pascal] Printing terminal colors with writeln

Ryan Joseph genericptr at gmail.com
Thu Sep 26 22:52:32 CEST 2019



> On Sep 26, 2019, at 4:46 PM, Jonas Maebe <jonas at freepascal.org> wrote:
> 
> In C, \033 inside a string means "the ASCII character with octal value
> 033". In Pascal, \033 instead a string means "\033". Use this instead:
> writeln(#&033'[31;1;4mHello'#&033'[0m');

that’s why! thanks.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list