Skip to content

Instantly share code, notes, and snippets.

@JuanitoFatas
Created April 3, 2014 09:03
Show Gist options
  • Select an option

  • Save JuanitoFatas/9951004 to your computer and use it in GitHub Desktop.

Select an option

Save JuanitoFatas/9951004 to your computer and use it in GitHub Desktop.
stty raw -echo
raw (-raw) If set, change the modes of the terminal so that no input or
output processing is performed. If unset, change the modes
of the terminal to some reasonable state that performs input
and output processing. Note that since the terminal driver
no longer has a single RAW bit, it is not possible to intuit
what flags were set prior to setting raw. This means that
unsetting raw may not put back all the setting that were pre-
viously in effect. To set the terminal into a raw state and
then accurately restore it, the following shell code is rec-
ommended:
echo (-echo)
Echo back (do not echo back) every character typed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment