delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/12/15:06:33

Date: Tue, 12 Jun 2001 20:27:30 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: JT Williams <jeffw AT darwin DOT sfbr DOT org>
Message-Id: <1438-Tue12Jun2001202729+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <20010612090727.A24613@kendall.sfbr.org> (message from JT
Williams on Tue, 12 Jun 2001 09:07:27 -0500)
Subject: Re: old archived termios submission
References: <3B23A7E9 DOT 663 DOT 2BC22F AT localhost> <Pine DOT SUN DOT 3 DOT 91 DOT 1010611110853 DOT 17383A AT is> <3B25001A DOT 18075 DOT 735B29 AT localhost> <20010612090727 DOT A24613 AT kendall DOT sfbr DOT org>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Tue, 12 Jun 2001 09:07:27 -0500
> From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
> 
> -: > More importantly, all this seems excessive to me: why not just have a
> -: > table with an escape sequence for each extended key we want to
> -: > support, and be done with it?
> 
> I don't know, so I'm asking: is a TERMCAP file the canonical place for
> _all_ such cursor movement and key maps?

Either termcap or terminfo (the latter is the more modern facility),
but in any case it is not done directly.  Instead of accessing the
termcap/terminfo database directly, programs use functions like
tgetent and tgetstr to find out what is the escape sequence that is
sent by a certain special key.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019