home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / dec / 4168 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!rutgers!spcvxb.spc.edu!terry
  2. From: terry@spcvxb.spc.edu (Terry Kennedy, Operations Mgr.)
  3. Newsgroups: comp.sys.dec
  4. Subject: Re: Zen and bad Karma with running an EXE in a .com
  5. Message-ID: <1992Jul23.221651.3388@spcvxb.spc.edu>
  6. Date: 24 Jul 92 02:16:51 GMT
  7. References: <1992Jul23.152903.1601@drycas.club.cc.cmu.edu>
  8. Organization: St. Peter's College, US
  9. Lines: 26
  10.  
  11. In article <1992Jul23.152903.1601@drycas.club.cc.cmu.edu>, perry@drycas.club.cc.cmu.edu writes:
  12. > The program (a .EXE) is menu driven giving you options, then more menus
  13. > with more options.  To go one back (pop up one menu, or exit), you hit the
  14. > CTRL-Z key.  I cannot find the magic to make ctrl-z as important as it is
  15. > when in interactive mode.
  16. > You think ^Z is the same in either, right?  So did I.  But then explain why
  17. > the F10 key is the same as ^Z, when they are completely different keys (meaning
  18. > they send different sequences back to the vax) BTW- neither CTRL-Z or F10
  19. > seems to mean  EXIT in batch.
  20.  
  21.   No, a ^Z from a terminal is translated to End Of File and that info is re-
  22. turned to the application. If your VMS terminal type is set to one the models
  23. that has an F10 key, the terminal driver maps F10 to EOF (note - not to ^Z).
  24.  
  25.   There isn't an easy way to supply multiple EOF's to a program via a .COM
  26. file (a single one is easy, you generate it when the next input line in the
  27. .COM file starts with a $).
  28.  
  29.   You probably want to investigate the PTY (pseudo-terminal) services in re-
  30. cent VMS versions (5.4 and up, I think). This will let you run the program
  31. on a pseudo-terminal, which you can control the input/output for.
  32.  
  33.     Terry Kennedy        Operations Manager, Academic Computing
  34.     terry@spcvxa.bitnet    St. Peter's College, Jersey City, NJ USA
  35.     terry@spcvxa.spc.edu    +1 201 915 9381
  36.