From owner-freebsd-bugs Wed May 17 14:32:12 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA15073 for bugs-outgoing; Wed, 17 May 1995 14:32:12 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id OAA15066 ; Wed, 17 May 1995 14:32:08 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA26049; Wed, 17 May 95 10:33:32 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9505171633.AA26049@cs.weber.edu> Subject: Re: Changed information for PR misc/409 To: nox@jelal.hb.north.de (Juergen Lock) Date: Wed, 17 May 95 10:33:32 MDT Cc: ache@freefall.cdrom.com, freebsd-bugs@freefall.cdrom.com In-Reply-To: <9505152004.AA00267@jelal.hb.north.de> from "Juergen Lock" at May 15, 95 10:04:28 pm X-Mailer: ELM [version 2.4dev PL52] Sender: bugs-owner@FreeBSD.org Precedence: bulk > > 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). 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. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.