HP 3000 Manuals

cbreak, nocbreak [ MPE/iX Developer's Kit Reference Manual Volume II ] MPE/iX 5.0 Documentation


MPE/iX Developer's Kit Reference Manual Volume II

cbreak, nocbreak 

The cbreak and nocbreak routines enable and disable the character-mode
operation.

Syntax 

     #include <curses.h>

     int cbreak();
     int nocbreak();

Return Values 

OK                    Successful completion.

ERR                   An error occurred.

Description 

The cbreak() and nocbreak() routines enable and disable character-mode
operation, respectively.  When enabled, characters typed by the user are
immediately processed by the program.  When disabled, the terminal driver
is placed into line canonical input mode, which buffers typed characters
(until a newline or carriage return are typed) and handles erase() and
kill() character processing.  These routines do not affect flow control
or interrupt characters.

The terminal may or may not be in character mode operation initially.
Most interactive programs require cbreak() to be enabled.

Implementation Considerations 

Identical to XPG/3

See Also 

wgetch(), halfdelay(), nodelay(), raw(), wtimeout()

Portability 

HP-UX, UNIX System V, XPG/3



MPE/iX 5.0 Documentation