Skip to content

Instantly share code, notes, and snippets.

Created Aug 5, 2021
What would you like to do?
# borrowed from
import sys
import termios
import tty
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
ch =
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment