Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!ukc!pyrltd!abekrd!garyb From: garyb@abekrd.UUCP (Gary Bartlett) Newsgroups: comp.windows.x Subject: Xterm translations in vi/nn Message-ID: <1580@abekrd.UUCP> Date: 20 Dec 90 12:42:12 GMT Organization: Abekas Video Systems Ltd, Reading, England Lines: 15 My normal windows are xterms. I have a numeric keypad which normally produces the correct characters - for instance pressing 'KP_0' generates a '0'. But when I start up vi (and nn) in this xterm window, the KP_0 generates the corresponding vt100 escape code (I think) (eg - KP_0 -> ^[Op). Can someone explain this please. Does xterm map the key differently for raw mode operation? How can I get KP_0 to generate a 0 in vi (other than with a map! in my .exrc). -- --------------------------------------------------------------------------- Gary C. Bartlett NET: garyb@abekrd.co.uk Abekas Video Systems Ltd. UUCP: ...!uunet!mcsun!ukc!pyrltd!abekrd!garyb 12 Portman Rd, Reading, PHONE: +44 734 585421 Berkshire. RG3 1EA. FAX: +44 734 567904 United Kingdom. TELEX: 847579