Path: utzoo!attcan!uunet!mcsun!unido!gtc!pemstgt!tb From: tb@pemstgt.gtc.de (Tillmann Basien) Newsgroups: comp.unix.xenix Subject: CBREAK on SCO XENIX Message-ID: <1990Jul06.094023.21756@pemstgt.gtc.de> Date: 6 Jul 90 09:40:23 GMT Reply-To: tb@pemstgt.gtc.de (Tillmann Basien) Organization: PEM Tillmann Basien, Stuttgart, West-Germany Lines: 34 Hy, I have a source code of a keyboard-programm under SCO XENIX 2.3.2 and I want to compile it under SCI UNIX 3.2. SCO UNIX 3.2 does not know CBREAK and I don't find anything in the doc. Here the source: static int set_tty() { struct sgttyb _t; if ((KB_LINE=open("/dev/tty", O_RDWR))<0) return -1; gtty (KB_LINE,&_t); old_flags = _t.sg_flags; /* don't echo chars, don't expand tabs, no RAW-mode */ _t.sg_flags &= ~(ECHO | CRMOD | RAW | XTABS) ; /* but CBREAK */ _t.sg_flags |= CBREAK; stty (KB_LINE,&_t); return 0; } /* set_tty */ What kind of flag is CBREAK, what does it mean? What ist the UNIX equivilant for it? Thanks to all of you Tillmann -- Dipl.Ing. Tillmann Basien tb@pemstgt.gtc.de Programmentwicklung fuer Microcomputer unido!gtc!pemstgt!tb UUCP Vaihinger Str.49, PostBox 810165 +49-711-713047 FAX 7000 Stuttgart 80- West Germany +49-711-713045 PHONE