in reply to Color on TrueWhite in Curses - Redux
Maybe I'm being thick, but can_change_color is returning false, which is telling you your terminal can't change colors. Basically it sounds like you want to send color sequences to a terminal that doesn't support it. The terminal (which may be a console driver ... same basic thing from a curses point of view) may be using colors as part of its monchrome display which may be confusing you.
Way back when I worked on a curses-like thing the first step was to manually apply the escape sequences to see if the terminals did what we wanted. It could be that you have color capablites but you either have your TERM environment variable set to a monochrome version; or you have a termcap/terminfo entry that isn't specifying the color sequences even though the terminal supports them.
I did get a smile from the "curses looks like a wonderful tool ..." bit. I suppose there are still uses and I loved this kind of work when I did it, but the advent of windows and web browsers pretty much ended my foray into the world of ASCII terminals.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Color on TrueWhite in Curses - Redux
by dvergin (Monsignor) on Feb 04, 2003 at 20:30 UTC | |
by steves (Curate) on Feb 04, 2003 at 20:53 UTC | |
by dvergin (Monsignor) on Feb 04, 2003 at 22:15 UTC | |
by steves (Curate) on Feb 04, 2003 at 23:15 UTC |