Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!mcsun!ukc!pyrltd!abekrd!garyb From: garyb@abekrd.UUCP (Gary Bartlett) Newsgroups: comp.windows.x Subject: Re: Xterm translations in vi/nn Message-ID: <1586@abekrd.UUCP> Date: 21 Dec 90 11:27:44 GMT References: <9012202306.AA16572@excalibur.lcs.mit.edu> Organization: Abekas Video Systems Ltd, Reading, England Lines: 29 In <9012202306.AA16572@excalibur.lcs.mit.edu> gildea@EXPO.LCS.MIT.EDU (Stephen Gildea) writes: >The explanation is that xterm is correctly emulating a VT100. The >VT100 keypad has several modes, which are controlled by ESC sequences. > > How can I get KP_0 to generate a 0 in vi (other than with a map! > in my .exrc). >Actually, a map command is not such a bad idea. Your other options >are to create and/or install a termcap or terminfo entry more to your >liking, or define XTerm*VT100 translations for the keypad keys. I tried XTerm*VT100 translations but these were ignored in `keypad-mode' although they worked fine in normal mode. Is there perhaps another resource option for translations in this mode? What do you do with applications that switch to keypad-mode and don't provide ways to remap keys? Does anyone have a full list of VT100 control codes? Thanks again. Gary -- --------------------------------------------------------------------------- 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