Go to the first, previous, next, last section, table of contents.


tcsetattr

Syntax

#include <termios.h>

int tcsetattr (int fd, int action, const struct termios *termiosp);

Description

This function sets termios structure for device open on the handle fd from the structure termiosp. Note that the termios emulation handles console only.

The action argument can accept the following values:

TCSANOW
TCSADRAIN
TCSAFLUSH

Currently, any of these values causes the values in termiosp to take effect immediately.

See section Termios functions, for the description of the struct termios structure.

Return Value

Zero on success, nonzero on failure.

Portability

not ANSI, POSIX

Example

tcsetattr (0, TCSANOW, &termiosbuf);


Go to the first, previous, next, last section, table of contents.