Date: Tue, 12 Jun 2001 20:27:30 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: JT Williams 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> <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 Precedence: bulk > Date: Tue, 12 Jun 2001 09:07:27 -0500 > From: JT Williams > > -: > 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.