Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!csus.edu!csusac!usenet From: jetfuel@babbage.csus.edu (Dave Jenks) Newsgroups: comp.terminals Subject: Re: Seeking vt220 help Summary: DEC is weird. Keywords: vt200 vt300 ESC F11 blah blah blah Message-ID: <1991Jun23.054204.28307@csusac.csus.edu> Date: 23 Jun 91 05:42:04 GMT References: <1991Jun21.155750.23070@shl.com> Sender: usenet@csusac.csus.edu (News account (alt)) Organization: California State University, Sacramento Lines: 37 In article <1991Jun21.155750.23070@shl.com> lbrooks@shl.com (Lyle Brooks) writes: >/* I type in "i" to insert, followed by the string, followed by > * the F11 key. > */ > abc deg hfi > >/* And I get the following... See the "i" changes to "I" and the cursor > * moves back a character. > */ > abc deg hfI >I further know that when I am at the shell prompt and hit the F11 (ESC) key >followed by a I get ... > >^[[23~ not found > >I've been told that the "~" in vi is what is changing the case. I tried to >I know this is a work around, but after I fought the battle this long... You've pretty much summed it up - DEC vt200- and vt300-series ttys use the LK-201 keyboard. One "feature" of this keyboard is that ESC (F11) sends a known character sequence, which you described, above. DEC-designed O/Ss (ie, VMS) know about this, since they only support DEC ttys. I use a vt320 at home, and get around this by just using ctrl-[ intead of F11/"ESC". The only alternative I can think of is to program the key on the terminal to actually send the 0x1B character (ESC). I wrote a utility to do this once, but it was lost long ago. It's a royal pain-in-the-butt to program them, but if there is enough interest, I'll rewrite it with a nice interface. --Dave -- ======================================================================= "Pro is to con, as progress is to Congress..." >>-@@-> Dave Jenks uunet.UU.NET!babbage.ecs.csus.edu!jetfuel =======================================================================