Go to the first, previous, next, last section, table of contents.
#include <termios.h> int tcgetattr (int fd, struct termios *termiosp);
This function gets the parameters associated with the file/device
referred to by the handle fd and stores them in the termios
structure termiosp. See section Termios functions, for the full
description of struct termios
and its members.
Note that the termios emulation handles console only.
Zero on success, nonzero on failure.
not ANSI, POSIX
struct termios termiosbuf; int rc = tcgetattr (0, &termiosbuf);
Go to the first, previous, next, last section, table of contents.