Here is a copy of the question I entered on
http://openfacts.berlios.de/index-en.phtml?title=Ncurses-ruby:
#+v
How are things with support for more than 8 colors in ncurses-ruby ?
I ran 'puts(Ncurses.COLORS.to_s + " " + Ncurses.can_change_color?.to_s)'
on a terminal that supports more than 8 and got “8 false”.
Does that mean I am restricted to 8 colors ?
#-v
Any ncurses experts here ?
Thx,
Simon
···
–
There are 10 types of people in the world…
those who understand binary and those who don’t.
Saluton!
I ran ‘puts(Ncurses.COLORS.to_s + " " + Ncurses.can_change_color?.to_s)’
on a terminal that supports more than 8 and got “8 false”.
You set a color to black, blue, brown, cyan, green, magenta, red, or
white. The rest is done by setting bold. For more information please
consult ‘man 4 console_codes’ or take a look at my ecma48sgr module
available at
http://members.lycos.nl/linux/soft/ruby/ecma48svgr-module.html
I would have preferred to send this off-topic using private mail but
‘deliriousNOSPAM@atchoo.be’ looks too non-existent to me. It is no
problem if you make an address invalid but please
- clearly state if you did and
- tell what to do to make address valid again.
I don’t want to have to do wild guesses…
Gis,
Josef ‘Jupp’ Schugt
···
–
/_/\ | e-mails that do not contain plain text, are larger than |
= o o = | 50 KiB, are unsolicited, or contain binarys are ignored |
\ o / | unless payment from your side or technical reasons give |
/===\ | rise to a non-standard treatment. ______________________|
http://members.lycos.nl/linux/soft/ruby/ecma48svgr-module.html
I get a 404 on this URL.
I would have preferred to send this off-topic using private mail but
‘deliriousNOSPAM@atchoo.be’ looks too non-existent to me. It is no
problem if you make an address invalid but please
- clearly state if you did and
- tell what to do to make address valid again.
Will do. Thank you for pointing that out.
Got a little carried away by my inability to reproduce all colors used
by ‘mutt’ which is why I was assuming my terminal was using more than 8
colors. I found what I was looking for; thank you for your explanation
and my apologies for this off-topic post.
Simon
···
On Sat, 26 Apr 2003 at 16:20 GMT, Josef ‘Jupp’ Schugt wrote:
–
There are 10 types of people in the world…
those who understand binary and those who don’t.
Saluton!
http://members.lycos.nl/linux/soft/ruby/ecma48svgr-module.html
I get a 404 on this URL.
That should read
http://members.lycos.nl/jupp/linux/soft/ruby/ecma48sgr-module.html
Anyway, the file is very tiny. Attached to this message. It is just
some hashes…
Gis,
Josef ‘Jupp’ Schugt
ecma48sgr.rb.txt (3.59 KB)
···
–
/_/\ | e-mails that do not contain plain text, are larger than |
= o o = | 50 KiB, are unsolicited, or contain binarys are ignored |
\ o / | unless payment from your side or technical reasons give |
/===\ | rise to a non-standard treatment. ______________________|