Previous Section  < Day Day Up >  Next Section

stty—sets the options for a terminal


stty [ –a ] [ –g ] [ modes ]


stty sets certain terminal I/O options for the device that is the current standard input; without arguments, it reports the settings of certain options.

Example A.54.

1   stty erase <Press backspace key> or ^h

2   stty -echo; read secretword; stty echo

3   stty -a (AT&T) or stty -everything (BSD)


EXPLANATION

  1. Sets the Backspace key to erase.

  2. Turns off echoing; waits for user input; turns echoing back on.

  3. Lists all possible options to stty.

    Previous Section  < Day Day Up >  Next Section