cbreak(3curses)


cbreak -- input mode control functions

Synopsis

cc [options] file -lcurses
#include <curses.h>

int cbreak(void);

int nocbreak(void);

int noraw(void);

int raw(void);

Description

The cbreak(3curses) function sets the input mode for the current terminal to cbreak mode and overrides a call to raw(3curses).

The nocbreak(3curses) function sets the input mode for the current terminal to Cooked Mode without changing the state of ISIG and IXON.

The noraw(3curses) function sets the input mode for the current terminal to Cooked Mode and sets the ISIG and IXON flags.

The raw(3curses) 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.

Usage

If the application is not certain what the input mode of the process was at the time it called initscr(3curses), it should use these functions to specify the desired input mode.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

``Input Mode'', curses(4), termios(3C) ``General terminal interface'' in Programming with system calls and libraries
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004