Replacing getpass with termios.