home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.unix.questions
- Subject: Re: How to stty cbreak ?
- Keywords: terminal, tty,
- Message-ID: <14029@auspex-gw.auspex.com>
- Date: 13 Aug 92 03:07:09 GMT
- References: <1992Aug13.000728.412@eng.ufl.edu>
- Sender: news@auspex-gw.auspex.com
- Distribution: usa
- Organization: Auspex Systems, Santa Clara
- Lines: 26
- Nntp-Posting-Host: bootme.auspex.com
-
- >>stty cbreak
- >
- >but it doesn't seem work.
- >
- >I can't tell whether the cbreak
- >mode is on or not.
- >(I used: stty all, stty -a.
- >nothing appropriate shows.)
-
- If your system's "stty" command supports "stty -a", it probably has a
- System V/POSIX-ish "stty" command, and probably has a System V/POSIXish
- tty driver as well. (For example, it might be SunOS 4.x.)
-
- If so, there probably *is* no "cbreak" mode; that's what the old
- V7/BSD-style tty driver had.
-
- There is, instead, "icanon" mode.
-
- The "stty" command probably supports "stty cbreak" and "stty -cbreak"
- for backwards compatibility; however, "stty cbreak" probably turns
- "icanon" mode *OFF*, and "stty -cbreak" probably turns it on.
-
- If "stty -a" says "icanon" is on, then it's as if "cbreak" mode were
- off. If it says that "icanon"is not on, then it's as if "cbreak" mode
- were on (roughly; there's also "min" and "time" to worry about, but you
- probably don't want to have to worry about that...).
-