Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
Before starting to output commands to a terminal using termcap, an application program should do two things:
ospeedfor padding (see section 1.5.4 Performing Padding with
BCfor cursor motion (see section 184.108.40.206
To turn off output processing in Berkeley Unix you would use
TIOCLSET to set the bit named
LLITOUT, and clear
TIOCSETN. In POSIX or System V, you
must clear the bit named
OPOST. Refer to the system documentation
If you do not set the terminal flags properly, some older terminals will not work. This is because their commands may contain the characters that normally signify newline, carriage return and horizontal tab--characters which the kernel thinks it ought to modify before output.
When you change the kernel's terminal flags, you must arrange to restore
them to their normal state when your program exits. This implies that the
program must catch fatal signals such as
and restore the old terminal flags before actually terminating.
Modern terminals' commands do not use these special characters, so if you do not care about problems with old terminals, you can leave the kernel's terminal flags unaltered.
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|