1. How to get current color ?
Hi all!
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...
Thanks in advance!
Bye! -- from Lee, woo seob.
2. Re: How to get current color ?
>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.)