Xref: utzoo comp.unix.questions:29214 comp.terminals:2646 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!csn!spot.Colorado.EDU!frechett From: frechett@spot.Colorado.EDU (-=Runaway Daemon=-) Newsgroups: comp.unix.questions,comp.terminals Subject: Re: Using a vt220 clone with unix vi? Keywords: unix vi vt220 escape terminal editor Message-ID: <1991Mar7.012051.27038@csn.org> Date: 7 Mar 91 01:20:51 GMT References: Sender: news@csn.org (news) Organization: University of Colorado, Boulder Lines: 20 Nntp-Posting-Host: spot.colorado.edu In article pln@egret1.stanford.edu (Patrick L. Nolan) writes: >I would like to know if there's a way to change termcap or tset or teach >vi to deal with this sequence as if it was ESC. Or maybe to make >the terminal send ESC, without giving up the rest of the VT220 >keyboard mapping. Why not make vi recognize the difference. Here is an example while in vi: Type this sequence. :map! abc ^[ is . So you will see :map! abc ^[ When you are done. What happens is that any time you type abc, it will send ESC to vi. This is an easy thing to put in your .exrc file or just to type in. I suspect that the sequence that pressing the ESC key sends is odd enough that you are not going to just stumble on it some day while typing. ian -- Ian Frechette UNIXOPS University of Colorado at Boulder.