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