Re: How to get current color ?

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

>Is there any one to know how to get current text & back color number
>in TEXT mode?
>Euphoria has text_color() & bk_color() command to set the colors,
>however, does not have get_text_color() or get_bk_color() commands...

For the CURRENT color, you can simply update a variable each time you
change colors:

text_color(4)
current_text_color = 4

   -- or --

bk_color(var)
current_bk_color = var

(There are 2 ways for fore and back ground colors :)

This is what I am doing in my ANSI terminal, to keep track of the current
color. (It still has a couple display problems, but it works O.K.)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu