home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.hardware
- Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!riacs!danforth
- From: danforth@riacs.edu (Douglas G. Danforth)
- Subject: Re: Help: stty won't set terminal characteristics
- Message-ID: <1992Jul28.054526.16798@riacs.edu>
- Sender: news@riacs.edu
- Organization: RIACS, NASA Ames Research Center
- References: <1394@sousa.ltn.dec.com>
- Distribution: na
- Date: Tue, 28 Jul 92 05:45:26 GMT
- Lines: 36
-
- In <1394@sousa.ltn.dec.com> tarsa@elijah.mv.com (Greg Tarsa) writes:
-
-
-
- >We are trying to connect an HP LaserJet IIID to a Sparcstation.
-
- >In the process of trying to get this going (no luck yet), I have encountered
- >a problem: I can't seem to set the terminal characteristics of /dev/ttya.
-
- >/dev/ttya is set to "OFF" in the ttytab file and, therefore, has an entry
- >of "02ttya" in the /dev/ttys file. The following command:
-
- > stty > /dev/ttya
-
- >indicates a line speed of 9600 baud. The version of stty I am using is
- >coming from /bin/stty (i.e., UCB syntax and not SYSV syntax).
-
- > stty 19200 > /dev/ttya
-
- >should set the line speed to 19.2K, but there appears to be no change, either
- >as mortal user or super user.
-
- I have had the same difficulty. The only way I can get stty to set the
- characteristics and stick is to spawn a subshell with the standard output
- set equal to the device I want. In my case its /dev/cua0. But this
- is NOT what you or I want since this just sets the standard output charact-
- eristics. Once one leaves the subshell the device reverts back to its
- old settings. I believe we are not interpretting the function of stty
- correctly.
-
- Please, UNIX wizards out there. What IS the correct procedure to
- change device characteristics?
-
- -----
- D. Danforth
-
-