HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

cbreak nocbreak

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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

Feedback to webmaster