I am trying to figure out how to suppress the display of user input on stdout.
raw_input() followed by any print statement preserves what the user typed in. getpass() does not show what the user typed, but it does preserve the "Password:" prompt.
To fix this, I would like to only remove the last line (which would remove the newline from the end of the line as well).