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
raw_input()
Give this a try:
CURSOR_UP = '\033[F' ERASE_LINE = '\033[K' print(CURSOR_UP + ERASE_LINE)