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
ENOSYS with many
kernels, including Linux.
The symbols used in this section are declared in sgtty.h.
This structure is an input or output parameter list for
- Line speed for input
- Line speed for output
- Erase character
- Kill character
- Various flags
This function gets the attributes of a terminal.
gttysets *attributes to describe the terminal attributes of the terminal which is open with file descriptor filedes.