From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,3c067afeda0befb3 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,3c067afeda0befb3 X-Google-Attributes: gid1164f8,public From: lvt-cfc@cyber3.servtech.com (christopher f. chiesa) Subject: Re: New technology meets old. And the ancient terminal wins! Date: 1997/04/22 Message-ID: <5jitui$s5d@cyber3.servtech.com> X-Deja-AN: 236676055 References: <1997Apr18.225544.1@cpg.mcw.edu> <5ja1sk$8nb$1@rzsun02.rrz.uni-hamburg.de> Organization: ServiceTech, Inc. Newsgroups: comp.os.vms,comp.sys.dec In article <5ja1sk$8nb$1@rzsun02.rrz.uni-hamburg.de>, >I'm moving from a VAXStation 3100 M76 with VMS 5.2 which I've >always accessed with VT (clones---Ampex, Falco, Pericom) terminals to an >Alpha with VMS 7.1 and 17" colour monitor with DECWindows. The years of >terminal work have set high standards for what I expect from a terminal >emulation, I hadt he same experience. The one thing I found MOST disconcerting about the transition to DECterm emulators, was that the DECterm ITSELF buffers the data sent to it for display, but passes ^Y through to the host rather than acting on it ITSELF as might sometimes be useful: if you've got a long scrolling display (say a DUMP of a long file) flying past, and you decide you want to interrupt the operation with ^Y, you have to wait for the DECterm to empty its output buffer to the screen before the ^Y takes effect. If you intended to interrupt the output for purposes of leaving something on the screen for detailed examination, either you have to scroll back to it (handy, I admit, but not the solution to all problems) OR it's so far gone that it is no longer in the scrollback buffer. The longer you wait initially, before pressing ^Y, the more stuff is in the output buffer and the longer you have to wait for the results of your ^Y to reach the display. Digital folks, would it be possible to either provide a "clear the output buffer" keystroke (NOT just a pulldown-menu-option! Those are too slow!), OR tie that functionality into ^Y somehow? When I hit ^Y, I want the display to STOP RIGHT THERE -- NOT ten pages later when the buffer empties. >keys send what they're supposed to (even after being redefined, which, >however, was rarely needed on a good clone) which, at least with UNIX, >is a nightmare under X. It is a little easier to redefine certain keys -- those Digital feels are the most commonly useful to redefine, I assume -- in a DECterm. But the underlying X nightmare is still there if you want it! (And can get to it; Digital doesn't provide many of the "standard" Unix X utilities AFAIK...) >hope I won't miss the escape key, the backspace and linefeed keys (the For escape you can type ^[ (control right-square-bracket), for backspace ^H, and for linefeed ^J. It's a little awkward but you get used to it... >have to get used to the name of the key not being printed on it, Maybe someone sells adhesive keycap labels? Maybe -I- should! >wondering if it is possible to reconfigure certain keys so that they >ALWAYS send another value. It is probably possible to do what you want to do, but I think you're going to have to mess with that underlying "nightmare" to do it. > I don't mean like F11-F13 which VMS >sometimes interprets as ESC, BS and LF (at least that's how I understand >it) Depending on one's terminal (or emulator), F11-F13 can be configured to transmit actual ESC, BS, and LF codes down a serial line or into the keyboard interface of one's workstation -- but it appears from a quick test here that the default is for F11-F13 to transmit escape sequences just as do the rest of F6-F20. This leads to some interesting observations. - A small program that reads individual interactive keystrokes "from the terminal" and displays their ASCII codes, clearly shows the escape sequences arising from pressing F7-F20. - F6 is a special case, because the terminal driver recognizes the escape sequence from that key and treats it "like Control-Y" -- SORT OF. I have an application which intercepts control-C and control-Y -- but I can still "instantly interrupt" it by pressing F6. - The terminal driver's interpretation of F6-as-control-Y can happen "belatedly," if the escape sequence is typed manually. The sequence is "[17~", and if I type those characters individually to my ASCII-echoing program, the , [, 1, and 7 are echoed individually -- and then when the final ~ is struck, the terminal driver "suddenly realizes" that this was "an F6 keystroke" and DCL's ^Y handler fires and interrupts my program. (Interestingly, if I then issue a CONTINUE command and resume execution of the program, a 7 is echoed -- the same 7 from the F6 keystroke, "again," or an independent 7 coming from somewhere else, I know not.) - In EDT's "screen" editing mode, F12 and F13 cause behavior identical to "real" BS and LF strokes, as long as you're in the actual editing window. At the "command:" prompt brought up by GOLD KP7, however, F12 appear to be taken literally and cause errors. F11 definitely does NOT behave as ESC in the EDT screen editor at ANY time. I can see why EDT's designers would do that, but I'm not sure I could put it into words at the moment! >I'm looking for a way to do it ONCE to make it >valid EVERYWHERE, like on a terminal, and not redo it in each >application. (Of course, if some application interprets these in a non- >ASCII way, that's a different matter of no concern at the moment.) Some low-level part of X (perhaps, but not necessarily, uniquely part of the X server) has the job of mapping arbitrary keyboards' idiosyncratic output (which is NOT ASCII -- just a series of keypress and key-release signals) to the defined set of Xlib keypress and key-release events. It is then the job of the individual application to decide what use to make of these events, whether that be to insert the appropriate character(s) into a pseudoterminal's input stream, steer a videogame spaceship, or what-have-you. (Which reminds me -- Digital, I notice that I can accidentally command the Window Manager to close a DECterm window but that this does NOT always cause termination of the associated interactive login process. Is there any capability in DECterm, DECW$TERMINAL, etc., for creating a new terminal window and "reattaching" it to the old/existing pseudoterminal and the session logged in on it? That would sure be handy.) >Specifically, I would like the key to the left of 1/! to be `/~ ( >probably the default) and not ESC. ESC should be moved to the which >is to the left of z/Z (< and > are SHIFT , and . so they're redundant >here). It is possible to swap SOME of those keys around in DECterm, but not ALL of them as far as I can tell. Now that I think about it, I did have to change from the "out of the box" defaults to a couple of custom settings, in order to get "<" and ">" onto the "," and "." keys. I think at one point I had it so badly misconfigured that I DIDN'T HAVE "<" and ">" AT ALL -- or at least was missing ONE of them. >The ALT on the right should be LF and the COMPOSE on the right >should be BS (I'm assuming that the ALT and COMPOSE on the left will >give me all the functionality I need. I'm not sure you CAN intercept COMPOSE and ALT by themselves; they MAY be acting within the keyboard hardware itself, to simply cause OTHER keys to send different signals than "normally." I could be wrong, though. Hopefully this message contains SOME useful information... Chris Chiesa lvt-cfc@servtech.com