TIOCLSET

Set the entire local mode word

Synopsis:

#include <sys/ioctl.h>

#define TIOCLSET        _IOW('t', 125, int)

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request TIOCLSET
Additional argument A pointer to an int

Description:

This command sets the entire local mode word. It's implemented as a call to tcgetattr() to get the current settings, followed by a call to tcsetattr() to replace the local modes with the bits given.

Input:

The new bit settings; a combination of zero or more of the following:

ECHO
Enable echo.
ECHOE
Echo ERASE as destructive backspace.
ECHOK
Echo KILL as a line erase.
ECHONL
Echo \n, even if ECHO is off.
ICANON
Canonical input mode (line editing enabled).
IEXTEN
QNX Neutrino extensions to POSIX are enabled.
ISIG
Enable signals.
NOFLSH
Disable flush after interrupt, quit, or suspend.
TOSTOP
Send SIGTTOU for background output.

These are the same bits that appear in the c_lflag member of the termios structure.

Output:

None.

See also:

TIOCLGET

ioctl(), termios in the QNX Neutrino C Library Reference