by W. Richard Stevens
Addison-Wesley Professional Computing Series
0-201-56317-7 * Hardcover * 768 pages * ©1992
[Buy this book]
| Example | Relevant Functions | |
|---|---|---|
| 11.1 | Terminal settings: disable the interrupt char and change the EOF char | isatty, fpathconf tcgetattr, tcsetattr |
| 11.2 | Get teminal #bits/byte setting and set it to 8-bit char | tcgetattr, tcsetattr |
| 11.3 | POSIX.1 termid
implementation: |
Nothing interesting (dummy function returning "/dev/tty" for portability to non UNIX systems) |
| 11.4 | POSIX.1 isatty
implementation: |
isatty |
| 11.5 | Test program for 11.4 above | isatty |
| 11.6 | POSIX.1 ttyname
implementation: |
isatty,
fstat,
stat, opendir, readdir, closedir, strcpy, strncpy |
| 11.7 | Test program for 11.6 above | isatty, ttyname |
| 11.8 | POSIX.1 getpass
implementation: |
fopen,
setbuf, sigemptyset, sigaddset, sigprocmask, tcgetattr, tcsetattr, fputs, getc, putc, fclose |
| 11.9 | Test program for 11.8 above | getpass |
| 11.10 | A set of useful terminal handling functions: |
tcgetattr, tcsetattr |
| 11.11 | Test program for 11.10 above |
signal, tty_cbreak, tty_raw, tty_reset, read (single-char, unbuffered), |
| 11.12 | Print window size whenever it changes | isatty, signal, pause, ioctl |