Re: Displaying colored text on console

new topic     » goto parent     » topic index » view thread      » older message » newer message
rneu said...

The word 'important' came out in red but then there was error:

/usr/share/euphoria/include/std/graphics.e:97 in procedure text_color() type_check failure, c is {27,91,48,59,51,55,109}

The terminal color has become red and is not becoming black even on trying:

text_color(BLACK)

Not sure I can help.

On my system, WHITE is defined as the constant 7 in std\graphcst.e, but that value of {27,91,48,59,51,55,109} is the ansi sequence for white, "\e[0;37m".

Perhaps you could try text_color(7), and maybe text_color(0) instead of text_color(WHITE) and text_color(BLACK), see what that does.
Also the output of ?{WHITE,BLACK} may help someone else figure out what is wrong, maybe text_color() is broken on linux.
Someone else will have to explain where that value for WHITE is coming from.

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu