From owner-freebsd-bugs Sat May 20 10:24:26 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA03365 for bugs-outgoing; Sat, 20 May 1995 10:24:26 -0700 Received: from gimli.Informatik.Uni-Oldenburg.DE (gimli.Informatik.Uni-Oldenburg.DE [134.106.1.10]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id KAA03357 ; Sat, 20 May 1995 10:24:14 -0700 Received: by gimli.Informatik.Uni-Oldenburg.DE (Smail3.1.22.1) id ; Sat, 20 May 95 18:51 CES Received: by olis.north.de (/\==/\ Smail3.1.28.1 #28.13) id ; Sat, 20 May 95 18:41 MES Received: from jelal.hb.north.de by oytix.hb.north.de with bsmtp (Smail3.1.29.0 #1) id m0sChFD-0004l5M; Sat, 20 May 95 07:38 MET DST Received: by jelal.hb.north.de (SMail-ST 0.95gcc/2.5+) id AA00464; Sat, 20 May 1995 02:31:04 +0200 (CEDT) Subject: Re: Changed information for PR misc/409 To: terry@cs.weber.edu (Terry Lambert) Date: Sat, 20 May 95 2:31:02 CEDT From: Juergen Lock Cc: ache@freefall.cdrom.com, freebsd-bugs@freefall.cdrom.com In-Reply-To: <9505171633.AA26049@cs.weber.edu>; from "Terry Lambert" at May 17, 95 10:33 am X-Mailer: ELM [version 2.3/ST PL11] Message-Id: <9505200031.AA00464@jelal.hb.north.de> Sender: bugs-owner@FreeBSD.org Precedence: bulk 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