Chapter 18

team bbl


18.1

Note that you have to terminate the reset command with a line feed character, not a return, since the terminal is in noncanonical mode.

18.2

It builds a table for each of the 128 characters and sets the high-order bit (the parity bit) according to the user's specification. It then uses 8-bit I/O, handling the parity generation itself.

18.3

If you happen to be on a windowing terminal, you don't need to log in twice. You can do this experiment between two separate windows. Under Solaris, execute stty -a with standard input redirected from the terminal window running vi. This shows that vi sets MIN to 1 and TIME to 1. A call to read will wait for at least one character to be typed, but after that character is entered, read waits only one-tenth of a second for additional characters before returning.

    team bbl



    Advanced Programming in the UNIX Environment
    Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
    ISBN: 0321525949
    EAN: 2147483647
    Year: 2005
    Pages: 370

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net