CBREAK on SCO XENIX
Tillmann Basien
tb at pemstgt.gtc.de
Fri Jul 6 19:40:23 AEST 1990
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 at 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
More information about the Comp.unix.xenix
mailing list