cbreak.3x (2010 09)

c
cbreak(3X) cbreak(3X)
(CURSES)
NAME
cbreak, nocbreak, noraw, raw — input mode control functions
SYNOPSIS
#include <curses.h>
int cbreak(void);
int nocbreak(void);
int noraw(void);
int raw(void);
DESCRIPTION
The cbreak() function sets the input mode for the current terminal to cbreak mode and overrides a call
to
raw().
The
nocbreak() function sets the input mode for the current terminal to Cooked Mode without chang-
ing the state of ISIG and IXON.
The
noraw() function sets the input mode for the current terminal to Cooked Mode and sets the ISIG
and IXON flags.
The
raw() function sets the input mode for the current terminal to Raw Mode.
RETURN VALUE
Upon successful completion, these functions return OK. Otherwise, they return ERR.
ERRORS
No errors are defined.
APPLICATION USAGE
If the application is not certain what the input mode of the process was at the time it called
initscr(),
it should use these functions to specify the desired input mode.
SEE ALSO
curses_intro(3X), subsection called Input Mode, <curses.h>.
X/Open System Interface Definitions, Issue 4, Version 2 specification, Chapter 9, General Terminal Inter-
face .
CHANGE HISTORY
First released in X/Open Curses, Issue 2.
X/Open Curses, Issue 4
The
raw() and noraw() functions are merged with this entry. In previous issues, they appeared in
entries of their own.
The entry is rewritten for clarity. The argument list for all these functions is explicitly declared as void.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)