Multiple cr: sequences in termcap

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Jun 28 15:08:55 AEST 1989


In article <194 at iclswe.UUCP> lars at iclswe.UUCP (Lars Tunkrans) writes:
>I have a terminal that has two different keys that generate two different 
>Esc/Ctrl-sequences, but I want a software-package to interpret both keystrokes
>as Carriage Return. Is it possible and/or legal in Unix to declare two cr:
>sequences in the /etc/termcap-file.

It's not allowed (actually, you can include multiple definitions for
the same capability, but only one will be used).

Furthermore, the "cr" string capability is the string transmitted to
your terminal in order to accomplish a carriage return; it does NOT
indicate anything at all about what your keyboard transmits when the
"RETURN" key is pressed.  There are string capabilities for a lot of
possible key sequences, but not for "RETURN".

Any such mapping will have to be specially performed by the software
package in question; there is no way to exploit termcap to obtain the
mapping automatically.



More information about the Comp.unix.questions mailing list