Unix™ Systems Programming [Electronic resources] : Communication, Concurrency, and Threads

Prentice Hall

نسخه متنی -صفحه : 276/ 75
نمايش فراداده

6.9 Exercise: The stty Command

Do the following to become more familiar with terminal control.

  1. Read the man page on struct termios.

  2. Execute stty -a and try to understand the different fields.

  3. Compare the facilities provided by the specific terminal calls to those provided by use of ioctl. Read the struct termios information in Section 7 of the man pages for additional information.

Read the man page for stty and write your own program modeled after it.