Date: Sat, 20 May 95 2:31:02 CEDT From: Juergen Lock <nox@jelal.hb.north.de> To: terry@cs.weber.edu (Terry Lambert) Cc: ache@freefall.cdrom.com, freebsd-bugs@freefall.cdrom.com Subject: Re: Changed information for PR misc/409 Message-ID: <9505200031.AA00464@jelal.hb.north.de> In-Reply-To: <9505171633.AA26049@cs.weber.edu>; from "Terry Lambert" at May 17, 95 10:33 am
index | next in thread | previous in thread | raw e-mail
Terry Lambert writes:
> > > On all VT100-like (xterm included) keypad not supposed to generate numbers
> > > in keypad-active mode, but generates arrows instead
> >
> > So that means NumLock isn't supposed to work? with NumLock off
> > i get arrows, with NumLock on i get different escape sequences
> > unknown to vi.
> >
> > or should i just :map them to digits...
>
> The NumLock key switches the keypad between edit key mode and numeric
> key mode.
>
> So it will send escape sequences for up/down/left/right/home/end/pgup/pgdown
> or it will send the current keypad mode values.
>
> If yout termcap 'ti' string tells it to turn on keypad mode, it will, and
> the current keypad mode values will be escape sequences; otherwise, the
> current keypad mode values will be digits and the other characte that
> the keypad normally sends (+/-/del/enter).
Hmm. my xterm termcap doesn't have a ti string... looks like vi
and bash, and definitely elvis (another vi-alike i happen to have
source around) all set keypad mode directly using the ks/ke strings.
xterm|vs100|xterm terminal emulator (X window system):\
:do=^J:le=^H:ho=\E[H:\
:co#80:li#65:cl=\E[H\E[2J:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
:md=\E[1m:mr=\E[7m:me=\E[m:\
:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sf=\n:sr=\EM:\
:al=\E[L:dl=\E[M:im=\E[4h:ei=\E[4l:mi:dc=\E[P:\
:MT:ks=\E[?1h\E=:ke=\E[?1l\E>:xn:\
:AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:\
:hs:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:\
:is=\E\E[m\E[?7h\E[?1;4l:cs=\E[%i%d;%dr:\
:rs=\E[r\E<\E[m\E[H\E[2J\E[?7h\E[?1;3;4;6l:
>
> So the NumLock has squat to do with whether the keypad values sent are
> numeric or escape sequences, it has only to do with switching between the
> keypad values (whatever they are) and the edit values (an IBM extension
> when the original keyboards weren't 101 keys).
>
> If you want numeric instead of escape sequence values for the keypad
> values, then you will have to remove the terminal initialization sequence
> that requests the escape sequence values.
so for vi/bash/elvis that means either patch sources or the ks/ke strings?
or am i still overlooking something...
Juergen
--
J"urgen Lock / nox@jelal.hb.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
...ohne Gewehr
PGP public key fingerprint = 8A 18 58 54 03 7B FC 12 1F 8B 63 C7 19 27 CF DA
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9505200031.AA00464>
