Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!harrier.ukc.ac.uk!mch From: mch@ukc.ac.uk (Martin Howe) Newsgroups: comp.terminals Subject: Re: Termcap (ansi) arrow key question Summary: What Vi does Keywords: DECCKM DECKPAM DECKPNM DEC VT100 ALPHATRONIC Message-ID: <42@harrier.ukc.ac.uk> Date: 2 Feb 89 11:26:30 GMT References: <942@mcrware.UUCP> <9549@smoke.BRL.MIL> Reply-To: mch@ukc.ac.uk (Martin Howe) Organization: Lan/Micro Group, Comp. Lab, Univ. of Kent, CANTERBURY, UK Lines: 30 In article <9549@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >In article <942@mcrware.UUCP> kim@mcrware.UUCP (Kim Kempf) writes: >>Why is it that the termcap entry for most vt100-style terminals define >> [termcaps deleted] >>Some other termcaps claiming ANSI terminal compatability are defined in this >>latter method as expected. I have an application that won't work because of >>this problem. Is this some type of special hack that 'vi' uses and other ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>applications have to know about it, or what? Thanks in advance. > >The former sequences are transmitted in ANSI (non-VT52) mode when >the Cursor Key Mode (DECCKM) is Set and the latter when it is Reset. > Here at UKC, if you are using a VT100 in ANSI mode, vi sets DECCKM (see above) when it starts up, and clears DECCKM when it exits. Having termcap defined for =============================== DECCKM permanantly on, and Vi assuming so seems a funny way to do things. Man (5) termcap should tell you how to set up your own private termcap file, if you need to. (BTW, A powered-up or reset VT100 has DECCKM and DECKPAM cleared, and this cannot be changed in SET-UP). Regards -- Martin Howe (This posting is private, and NOT on behalf of UKC)