forum-msg-id-131144-edit

Original date:2017-06-26 09:13:37 Edited by: rneu Subject: Re: Displaying colored text on console

petelomax said...

Try this:

include std/graphics.e 
puts(1,"This is an ") 
text_color(BRIGHT_RED) 
puts(1,"important") 
text_color(WHITE) 
puts(1," notice.") 

Pete

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

    1. /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 Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu