def getpassword(prompt="<STR_LIT>"):
fd = sys.stdin.fileno()<EOL>old = termios.tcgetattr(fd)<EOL>new = termios.tcgetattr(fd)<EOL>new[<NUM_LIT:3>] &= ~termios.ECHO          <EOL>try:<EOL><INDENT>termios.tcsetattr(fd, termios.TCSADRAIN, new)<EOL>passwd = raw_input(prompt)<EOL><DEDENT>finally:<EOL><INDENT>termios.tcsetattr(fd, termios.TCSADRAIN, old)<EOL><DEDENT>return passwd<EOL>
get user input without echo