[aklug] Re: terminal types and curses programming

From: Arthur Corliss <acorliss@nevaeh-linux.org>
Date: Sat Jan 24 2009 - 09:43:49 AKST

On Fri, 23 Jan 2009, Christopher Howard wrote:

> Would you guys please look at this question I posted on-line:
>
> http://www.linuxquestions.org/questions/programming-9/curses-terminal-application-699469/?posted=1#post3419418

You can do the same thing, but you basically need to check the the
environment for an appropriate TERM variable before calling initscr() and
see if it's in the list known to terminfo (see setupterm(3), on the
command-line you can get the list from 'toe -a').

At this point you can either set a known terminal type yourself (if you're
brave ;-) like vt100 or ansi, or spit out a warning like emacs does.

          --Arthur Corliss
            Live Free or Die
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sat Jan 24 09:44:02 2009

This archive was generated by hypermail 2.1.8 : Sat Jan 24 2009 - 09:44:03 AKST