The usual way to get and set terminal modes is with the functions described
in section Terminal Modes. However, on some systems you can use the
BSD-derived functions in this section to do some of the same thing. On
many systems, these functions do not exist. Even with the GNU C library,
the functions simply fail with errno
= ENOSYS
with many
kernels, including Linux.
The symbols used in this section are declared in `sgtty.h'.
gtty
and
stty
.
char sg_ispeed
char sg_ospeed
char sg_erase
char sg_kill
int sg_flags
gtty
sets *attributes to describe the terminal attributes
of the terminal which is open with file descriptor filedes.
This function sets the attributes of a terminal.
stty
sets the terminal attributes of the terminal which is open with
file descriptor filedes to those described by *filedes.
Go to the first, previous, next, last section, table of contents.