Node:BSD Terminal Modes, Next:Line Control, Previous:Terminal Modes, Up:Low-Level Terminal Interface
The usual way to get and set terminal modes is with the functions described
in 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
.
struct sgttyb | Data Type |
This structure is an input or output parameter list for gtty and
stty .
|
int gtty (int filedes, struct sgttyb *attributes) | Function |
This function gets the attributes of a terminal.
|
int stty (int filedes, struct sgttyb * attributes) | Function |
This function sets the attributes of a terminal.
|