irf@kuling.UUCP (Bo Thide') (11/27/89)
The command parsing in elm.c seems to presuppose that arrow key commands always start with ESC (\033). This is not true. A vt220 in 8 bit mode uses as the CSI (Command Seqeunce Introducer) the octal \233 to mean the same thing as ESC[ in 7 bit mode. A quick and dirty hack to fix this is to add, in the file elm.c, case '\233': before line 646 case ESCAPE: ... I hope someone in the development team will look at this bug more thoroughly than I am able to. There may be other problems of a similar nature elsewhere in the code. Bo ^ Bo Thide'-------------------------------------------------------------- | | Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden |I| [In Swedish: Institutet f|r RymdFysik, Uppsalaavdelningen (IRFU)] |R| Phone: (+46) 18-403000. Telex: 76036 (IRFUPP S). Fax: (+46) 18-403100 /|F|\ INTERNET: bt@irfu.se UUCP: ...!uunet!sunic!irfu!bt ~~U~~ -----------------------------------------------------------------sm5dfw
syd@DSI.COM (Syd Weinstein) (11/28/89)
irf@kuling.UUCP (Bo Thide') writes: >The command parsing in elm.c seems to presuppose that arrow key commands >always start with ESC (\033). This is not true. A vt220 in 8 bit mode >uses as the CSI (Command Seqeunce Introducer) the octal \233 to mean >the same thing as ESC[ in 7 bit mode. A quick and dirty hack to fix >this is to add, in the file elm.c, > case '\233': >before line 646 > case ESCAPE: ... >I hope someone in the development team will look at this bug more thoroughly >than I am able to. There may be other problems of a similar nature elsewhere >in the code. This one is not a bug, but a limitation. Elm was never designed to handle arbitary cursor keys, only VT100 and HP. Our goal was to let curses do it, but as I have said before, we were never able to get test programs running curses to be portable enough. Oh, they compiled just fine, but acted different. Even when using a very limited subset of curses. (Too many vendors curses was broken). -- ===================================================================== Sydney S. Weinstein, CDP, CCP Elm Coordinator Datacomp Systems, Inc. Voice: (215) 947-9900 syd@DSI.COM or {bpa,vu-vlsi}!dsinc!syd FAX: (215) 938-0235
prc@erbe.se (Robert Claeson) (11/30/89)
In article <1989Nov28.152904.8745@DSI.COM>, syd@DSI.COM (Syd Weinstein) writes: > >The command parsing in elm.c seems to presuppose that arrow key commands > >always start with ESC (\033). This is not true. A vt220 in 8 bit mode > >uses as the CSI (Command Seqeunce Introducer) the octal \233 to mean > >the same thing as ESC[ in 7 bit mode. > This one is not a bug, but a limitation. Elm was never designed to > handle arbitary cursor keys, only VT100 and HP. VT220's are common enough these days that it would be worth adding support for the 8-bit control characters as well. As for me, I use a VT220 in Multinational mode but with 7-bit controls. Too many (American) applications tend to strip the high-most data bit (what some people mistakenly believe is the parity bit that is part of the interface and never should be passed on to applications by the tty driver). -- Robert Claeson E-mail: rclaeson@erbe.se ERBE DATA AB