Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!lll-crg!nike!ucbcad!ucbvax!sdcsvax!sdcrdcf!usc-oberon!mcooper From: mcooper@usc-oberon.UUCP (Michael A. Cooper) Newsgroups: net.unix-wizards Subject: setting cbreak/noecho under system V.2 Message-ID: <520@usc-oberon.UUCP> Date: Fri, 11-Jul-86 14:18:20 EDT Article-I.D.: usc-ober.520 Posted: Fri Jul 11 14:18:20 1986 Date-Received: Wed, 16-Jul-86 04:27:38 EDT Distribution: net Organization: USC Computing Services, Los Angeles Lines: 23 I'm trying to figure out how to set some tty modes under System V.2 (on a 3B20S) for a particulair application I have. Since I'm a Berkeley UNIX person, I have almost no System V background. Anyway, I'm using the following macros to accomplish my task: #define crmode() (_tty.c_lflag &=~ICANON, _tty.c_cc[VMIN] = 1,\ _tty.c_cc[VTIME] = 1,\ ioctl(_tty_ch,TCSETAF,&_tty)) #define nocrmode() (_tty.c_lflag |= ICANON, stty(_tty_ch,&_tty)) #define echo() (_tty.c_lflag |= ECHO, ioctl(_tty_ch, TCSETA, &_tty)) #define noecho() (_tty.c_lflag &=~ECHO, ioctl(_tty_ch, TCSETA, &_tty)) The problem is that when I use the macros, I get logged out. I assume because my tty "speed" is set to 0 (hangup). Would someone care to "enlighten" me to the System V idiosincroties of tty modes? -- Michael Cooper, U of Southern California Computing Services, (213) 743-3462 UUCP: {sdcrdcf, uscvax}!usc-oberon!mcooper ARPA: mcooper@usc-oberon.arpa BITNET: mcooper@uscvaxq