home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3719 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.2 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: 'cat'ting 8 bit data to the terminal.....
  5. Message-ID: <14333@auspex-gw.auspex.com>
  6. Date: 27 Aug 92 21:59:58 GMT
  7. References: <BARNETT.92Aug24093311@grymoire.crd.ge.com> <15250003@hprpcd.rose.hp.com> <BARNETT.92Aug27143531@grymoire.crd.ge.com>
  8. Sender: news@auspex-gw.auspex.com
  9. Organization: Auspex Systems, Santa Clara
  10. Lines: 18
  11. Nntp-Posting-Host: bootme.auspex.com
  12.  
  13. >Someone told me that "stty cs7 -pass8" would work.
  14.  
  15. Someone may be confused.
  16.  
  17. There is absolutely no option to "stty" to cause *output* to be stripped
  18. to 7 bits on a SunOS 4.x pseudo-tty.  The "line discipline" STREAMS
  19. module "ldterm" doesn't have one, and the pseudo-tty driver doesn't
  20. either.
  21.  
  22. "stty cs7" plus whatever parity options you want will do so on a serial
  23. port, but that's because the hardware does the stripping if you set the
  24. character size to 7 bits.  The 4.x pseudo-tty driver pays no attention
  25. to the character size.
  26.  
  27. As I remember, the problem you were having is that the data being sent
  28. to the pseudo-tty was coming *from* a serial line, and had the 8th bit
  29. set.  Perhaps you should set the options on the serial line to strip the
  30. data to 7 bits?
  31.