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

  1. Path: sparky!uunet!munnari.oz.au!metro!usage!sphinx!pta!yarra!melba.bby.oz.au!gnb
  2. From: gnb@duke.bby.com.au (Gregory N. Bond)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: /etc/printcap, terminfo and VMIN.  AAAARRGGGGHHHH!!!
  5. Message-ID: <GNB.92Jul27161129@duke.bby.com.au>
  6. Date: 27 Jul 92 06:11:29 GMT
  7. Sender: usenet@melba.bby.oz.au (news READER id)
  8. Organization: Burdett, Buckeridge & Young, Melbourne, Australia
  9. Lines: 27
  10. Nntp-Posting-Host: duke
  11.  
  12. I'm attempting to connect a PostScript printer to a serial port on a
  13. 3/80 running 4.1.1.  Being PostScript, I need to be able to get the ^D
  14. back from it once the print job is done.  This means the serial port
  15. must be in -icanon mode, otherwise the ^D gets turned into EOF.
  16.  
  17. However, when I set -icanon in the printcap "ms=..." entry, I get the
  18. port set up with VMIN=4 and VTIME=0.  This means the read will never
  19. return until 4 characters are available, and the spooler program hangs
  20. indefinitely as there is only 1 ^D available.  Manually setting VMIN
  21. to 1 with stty unhangs the daemon and jobs start printing normally
  22. (until the daemon runs out of work, closes the port and resets VMIN.) 
  23.  
  24. And there appears to be no way to have lpd reset VMIN itself because
  25. the ms= printcap entry doesn't accept the "min n" arguments that stty
  26. does.  According to the termio(4), the initial value of MIN is 1, so
  27. who is setting it to 4 (which is ^D; no surprise as VMIN = VEOF)?
  28.  
  29. Surely I'm not the first person to discover this one?  Anything I can
  30. do other than make the input filter change VMIN itself?
  31.  
  32. [All our other printers are connected via terminal servers.  No such
  33. problems there.  Terminal control used to be so easy in V7!]
  34.  
  35. Greg.
  36. --
  37. Gregory Bond <gnb@bby.com.au> Burdett Buckeridge & Young Ltd Melbourne Australia
  38. "Take my archetypes - please!" - Henny Jungman (geoffm@purplehaze.Corp.Sun.COM)
  39.