banks@colors.dec.com (Dawn Banks) (09/09/86)
Recently received a copy of the VT-100 test program from mod.sources (or wherever it came from), and have partially ported it to VMS. First thing I did, of course, was to throw it at Dave Wecker's VT-100 emulator. Well, there are a bunch of nitpicky features that'll have to be implemented in the emulator before it'll pass this bear, and it'll take some time, too. But, here's a pretty easy one right off the bat: ANSI X3.64 is semi unclear as to what to do with control characters in the middle of an escape or control sequence. Actually, I think it may even say that it's some sort of error, but REAL VT-100s actually go ahead and interpret the control character normally, even though it's in the middle of a control or escape sequence. So, the following minimal hack to REMOTE.C will make it conform in this small way with the somewhat opaque operation of a VT-100. Note that an industrious soul could actually delete some of the code out of doesc and doctrl because they aren't going to receive much in the way of control characters anymore, but it's late and I'm lazy. -------- Line 29 of 'remote.original' ---- --- if (c == 27 || inesc >= 0) { doesc(c); return; } --- if (inctrl >= 0) { doctrl(c); return; } ++++++++ Line 29 of 'remote.c' ++++ + if (c == 24) {inesc = 0; inctrl = 0; return;} + if (c == 27 || (inesc >= 0 && c >= ' ')) { doesc(c); return; } + if (inctrl >= 0 && c >= ' ') { doctrl(c); return; } Files are different Controversy free, context free, content free, therefore disclaimer free. (DEC E-NET) Viking::Banks (UUCP) {decvax, ucbvax, allegra}!decwrl!dec-rhea!dec-Viking!Banks (ARPA) Banks%Viking.DEC@decwrl.ARPA