This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RXVT doesn't recognize ALT + Cursor keys

On Aug 20 22:57, Charles Wilson wrote:
> Corinna Vinschen wrote:
> >On further looking into this, it appears that the termcap/terminfo
> >entries are wrong.  ESC O A to ESC O D are only generated after
> >entering the DEC expanded cursor mode with ESC [ ? 1 h.  The default
> >codes are ESC [ A to ESC [ D. 
> From what I can tell, the "expanded" codes SHOULD be
>    ESC [ n A   where n is 1-9, not 0  (and '[' should be there)
> and should be emitted when in DECCKM mode.  This stuff is all handled in 
> src/command.c but it's a twisty maze that all looks the same.

No, that's not quite right.  It's O as in "O my god!", not 0 as in
01100101, and it's actually without [.  Try this with an xterm:

$ od -c
0000000 033   [   D 033   [   A 033   [   B 033   [   C  \n
$ echo '^[[?1h'

$ od -c
0000000 033   O   D 033   O   A 033   O   B 033   O   C  \n

See for how to
set the cursor mode,
for the escape sequences and for the meaning
of CSI and SS3.

Unfortunately the vt220 manual isn't much help when it comes to the
"Home" and "End" keys, because it has "Find" and "Select" in it's place.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]