[linux] Ncurses! (I am so clueless)
youshi10 at u.washington.edu
Tue Aug 30 18:29:59 PDT 2005
On Aug 31, 2005, at 4:35 AM, Marie Tessier wrote:
> Thank you! "export TERM=xterm-color" worked perfectly. And I
> added it to my .bashrc, so now it works automatically every time.
> Colors are fixed, now for ASCII line art.
> PS. Peter, sorry about the double message. Thunderbird is trying
> to outsmart me.
> Peter Woodman wrote:
>> could be a couple of things. my ncurses days are long behind me,
>> but one terminology issue i find the need to clarify- konsole is
>> not a shell, but a terminal emulator. things like "bash", "csh",
>> "zsh", these are shells.
>> assuming you are using "bash" for your shell, try issuing the
>> command "export TERM=xterm-color" and see what that ncurses
>> function returns.
>> for a very well-documented piece of curses stuff (from ages ago),
>> look at http://ojnk.sf.net/ and grab the source for ocd. the only
>> time i've touched curses, but hey, it worked well, and colorful
>> too :P
You may want to set the terminal to something other than 'xterm-
color'; pine and other programs which-for some odd reason-depend on
the value exported for TERM, respond differently to each terminal
type and hate 'xterm-color' for some odd reason. I have found that
using 'xterm' for TERM works just as fine and I still see colors :).
More information about the Linux