Skip to content

Instantly share code, notes, and snippets.

@trsqxyz
Created July 10, 2015 00:18
Show Gist options
  • Save trsqxyz/3232d04881e3b95e7f27 to your computer and use it in GitHub Desktop.
Save trsqxyz/3232d04881e3b95e7f27 to your computer and use it in GitHub Desktop.
import msvcrt
def inp():
w = []
while True:
w.append(msvcrt.getwch())
if w[-1] == '\x10': break
return ''.join(w[:-1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment