Thomas Dickey wrote:

> On Feb 24, 3:58=A0pm, "Paul B. Mahol" <[email protected]> wrote:
> > >> --- Terminal keys ---
> > >> t_kl <Left> =A0 =A0 =A0^[O*D
> > >> t_#4 <S-Left> =A0 =A0^[OD
> > >> <xLeft> =A0 =A0 ^[[1;*D
> > >> t_kr <Right> =A0 =A0 ^[O*C
> > >> t_%i <S-Right> =A0 ^[OC
> > >> <xRight> =A0 =A0^[[1;*C
> >
> > > Thus the shifted cursor keys are defined wrong.
> ...
> > key ku: ^[OA
> > key kd: ^[OB
> > key kr: ^[OC
> > key kl: ^[OD
> > key #2: ^[OH
> > key #4: ^[OD
> > key %i: ^[OC
> > key *7: ^[OF
> > key k1: ^[OP
> > key k2: ^[OQ
> > key k3: ^[OR
> > key k4: ^[OS
> > key k5: ^[[15~
> > key k6: ^[[17~
> > key k7: ^[[18~
> > key k8: ^[[19~
> > key k9: ^[[20~
> > key k;: ^[[21~
> > key F1: ^[[23~
> > key F2: ^[[24~
> > key %1: ^[[28~
> > key &8:
> > key kb: ^H
> > key kI: ^[[2~
> > key kD: ^[[3~
> > key kh: ^[OH
> > key @7: ^[OF
> > key kP: ^[[5~
> > key kN: ^[[6~
> > key K1: ^[OH
> > key K3: ^[[5~
> > key K4: ^[OF
> > key K5: ^[[6~
> > key kB: ^[[Z
> 
> That's consistent with vt220 keyboard setting.
> (I don't see any modified keys).
> 
> In patch #238, I modified xterm to not return
> anything for tcap-query if it finds that it's
> a modified (e.g., shift) key which does not differ
> from the unmodified one.
> 
> That seemed to help vim not get confused between
> modified/unmodified keys which were returning the
> same strings.

Yes, well, the question is who is resposible for detecting that the same
key code is used for multiple keys.  For Vim it would have to guess what
the key means.  Dropping the shift modifier seems logical, but requires
a table to know which codes normally include a modifier.

Solving this in xterm sounds like the best idea.  It basically means
that the shifted key isn't distinguished from the unshifted key, thus
doesn't actually work and thus should not have a termcap entry.

Double checking: I don't have to do anything for Vim?

-- 
hundred-and-one symptoms of being an internet addict:
127. You bring your laptop and cellular phone to church.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui