Last Updated: February 25, 2016
·
325
· ryepdx

Turn keyboard entry visibility on and off in bash

Force-quitting from the Python debugger can have the unfortunate side effect of turning off input echoing in the bash command line. This means you can still type and enter commands, but you can't see what you're typing.

After accidentally doing this one too many times, I did a quick StartPage search and found this command:

stty echo

In the event you want to hide keyboard input (for accepting passwords from within shell scripts, for example):

stty -echo

Credit goes to Jay for this nugget o' knowledge.