Xref: utzoo comp.editors:2153 comp.sys.hp:7056 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!metro!macuni!mqcomp!richard From: richard@mqcomp.mqcc.mq.OZ (Richard Miller) Newsgroups: comp.editors,comp.sys.hp Subject: Re: vi doubleescape feature Message-ID: <844@macuni.mqcc.mq.oz> Date: 6 Dec 90 13:50:09 GMT References: <90333.192627QQ11@LIVERPOOL.AC.UK> Sender: news@macuni.mqcc.mq.oz Reply-To: richard@mqcomp.mq.oz (Richard Miller) Organization: Macquarie University, School of Mathematics, Physics, Computing and Electronics Lines: 31 In article <90333.192627QQ11@LIVERPOOL.AC.UK> QQ11@LIVERPOOL.AC.UK writes: >This is available with vi under HP-UX 7.0 (and HP-UX 6.5 and before (??)). >When set, 2 consecutive ESCs are required to exit from input mode. >It's very useful when supporting the arrow keys and allows full/proper >cursor movement in input mode. >However a quick check on other systems indicates that this feature is not >widespread. It's not available under SunOS 4.1 , SCO Un*x 3.2 >and I assume 4.3 BSD and SVr3. The "User's Guide" for SVr4 makes no >mention (but then it makes no mention of a number of things :-)). > >Do any other vi versions have this feature and/or is there a 'catch' ? > I've not noticed this feature - I must give it a go. But most version (SunOS 4.1 etc) use a time out so that if an ESC and another char is received in quick succession it is treated an ESC sequence, otherwise it is an ESC and then the char. This make curor movement in insert mode a macroable thing. This seems to be how all multiple char marcos are handled. Richard ____________________________________________________________________________ | __ | | /_/ -__ /_ _ _ _ __/ /\/\ -// _ | | / \ /(_ / /(_/ / (_/ / ////(~/ | | | | School Math, Physics, Elec and Computing, Macquarie University SYDNEY AUST.| | Email: richard@mqcomp.mqcs.mq.oz.au ,Ph:+61 2 8058374, Fax:+61 2 8058983 | |____________________________________________________________________________| Brought to you by Super Global Mega Corp .com