def restore_echo():
 fdesc = sys.stdin.fileno()
 attrs = termios.tcgetattr(fdesc)
 attrs[3] = (attrs[3] | termios.ECHO)
 termios.tcsetattr(fdesc, termios.TCSADRAIN, attrs)

def restore_echo ( ) : fdesc = sys . stdin . fileno ( ) attrs = termios . tcgetattr ( fdesc ) attrs [ 3 ] = ( attrs [ 3 ] | termios . ECHO ) termios . tcsetattr ( fdesc , termios . TCSADRAIN , attrs )
hack for URL equivalent issue with nmap .