CBREAK on Interactive Unix 2.2

CBREAK on Interactive Unix 2.2

Post by Gordon Marwo » Tue, 22 Jan 1991 12:50:08



I shall shortly be transferring from a MicroVAX Ultrix system to one
using Interactive Unix 2.2.  In preparation for this I am transfering a
number of programs over to the new system.  One of these uses CBREAK in
a function which changes mode to allow "hot-key" interaction by the user.
The Interactive C compiler cannot seem to find CBREAK, and generates an
error.  Any assistance to solve this problem would be appreciated.

Gordon Marwood

 
 
 

CBREAK on Interactive Unix 2.2

Post by Guy Harr » Sat, 26 Jan 1991 06:05:08


Quote:>            new.c_lflag &= ~ECHO;
>            new.c_lflag &= ~ICANON;
>            new.c_lflag &= ~ISIG;

...

Quote:>Thus, using cbreak(1) would put the terminal into cbreak mode,

And also turn off echoing and processing of signal characters such as
the interrupt and quit characters, which turning CBREAK mode on, in
systems with that mode, won't do.

CBREAK, in systems that have it (well, in systems that have a V7-style
CBREAK, and not some Mutant CBREAK From Hell), is the inverse of ICANON
on systems that have it; turning CBREAK on is equivalent to turning
ICANON off, setting c_cc[VMIN] to 1, and setting c_cc[VTIME] to 0, but
leaving ECHO and ISIG alone.

In practice, lots of programs that turn CBREAK mode on also want to turn
echoing and the signal characters off, but not all do (most probably
turn echoing off, but many may not turn the signal characters off), so
the function in question may be what he wants - but it's not
*necessarily* what he wants, as the program may really want the
interrupt character to cause a SIGINT.

 
 
 

1. POSIX library for Interactive UNIX 2.2

I've recently upgraded from Interactive 386/ix 2.0 to Interactive UNIX 2.2.
This is supposed to be POSIX compliant system and it seems that most of
the right .h files are in almost the right places - the only one I can't
find is termios.h - but there is termio.h.  The one major piece that seems
to be missing is the POSIX library (libcposix.a or libposix.a).  When
we upgraded, we did not buy the new compiler - is this how the libraries
are distributed?  If so, anyone have a POSIX library available for Sys V
- source preferable?

Thanks,

Howard Weiss

SPARTA, Inc.
9861 Broken Land Parkway, suite 355
Columbia, MD 21046
phone: 301-381-9400

2. Help! KDE dumps core after upgrade

3. HELP CONFIGURING SENDMAIL/SMAIL ON INTERACTIVE UNIX 2.2 - PLEASE HELP!

4. Java WorjShop for Linux

5. Interactive Unix Rel. 2.2, TCP/IP, X

6. Operation not permitted

7. GNU BASH with Interactive 2.2 Job Control

8. getting to network from inside kernel

9. XaoS 2.2 - fast portable realtime interactive fractal zoomer/morpher

10. term 2.2.x slow interactive response

11. XaoS 2.2 - fast portable realtime interactive fractal zoomer/morpher

12. Interactive Unix or SCO Unix ?

13. Really serious security hole in Microport Unix (Re: SECURITY BUG IN INTERACTIVE UNIX SYSV386)