TIOCLGET

Get the local modes

Synopsis:

#include <sys/ioctl.h>

#define TIOCLGET        _IOR('t', 124, int)

Arguments to ioctl():

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

Description:

This command gets the current local modes. It's implemented as a call to tcgetattr() to get the current settings.

Input:

None.

Output:

The current 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.

See also:

TIOCLSET

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