From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,c739cc5233e5a1a2,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,c739cc5233e5a1a2,start X-Google-Attributes: gid1164f8,public From: fairfield@sldb6.slac.stanford.edu Subject: Re: keypdad in MAIL becomes undefined--help Date: 1995/11/17 Message-ID: <1995Nov17.012038.1@sldb6.slac.stanford.edu>#1/1 X-Deja-AN: 119573780 sender: news@unixhub.SLAC.Stanford.EDU references: <48hcjh$di0@rzsun02.rrz.uni-hamburg.de> organization: Stanford Linear Accelerator Center newsgroups: comp.os.vms,comp.sys.dec In article <48hcjh$di0@rzsun02.rrz.uni-hamburg.de>, Phillip Helbig writes: > If I am running MAIL, do BREAK and transfer to a UNIX box (Falco > VT 220 clone through a DEC terminal server), then the mail keypad > definitions are lost when I come back to MAIL on the VAX and I have > the numeric keypad. How can this behaviour be prevented? I mean > automatically, not through the setup or whatever. What's happening (apparently) is that the unix machine is reseting the terminal to numeric keypad mode (or is it the terminal server, can terminal servers do that?). In any case, when you enter MAIL, or any of a number of other VMS applications that use the keypad, behind your back, the terminal is forced into application keypad mode. It appears that once you use BREAK to get out of MAIL, something or someone is putting the terminal back into numeric keypad mode. When you return to your MAIL application, it has no way of checking and restoring application keypad mode. One way to prevent this is to SPAWN out of MAIL before you BREAK to the unix session. This works for TPU (EVE), and I'm assuming similar mechanisms are used for MAIL. In TPU, the terminal settings...like keypad mode...are saved when you enter the application, and restored when you exit. Also during a spawn, the terminal settings are restored just prior to the spawn, and put back the way TPU (or MAIL) needs them when you return from the spawn. If spawning doesn't work, I can think of no _automatic_ way to restore the settings. Your only other alternative would be to prevent whoever is putting the terminal in numeric keypad mode from doing that... -Ken -- Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 46 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | Voice: 415-926-2924 FAX: 415-926-3515 ------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...