Skip to content

Instantly share code, notes, and snippets.

@lomalkin
lomalkin / input.py
Last active July 3, 2023 01:44 — forked from ali1234/input.py
Unbuffered, non-blocking stdin in Python
import fcntl
import termios
import sys
import os
import time
class NonBlockingInput(object):
def __enter__(self):
@lomalkin
lomalkin / test.md
Last active January 25, 2017 09:07
test description

Test

Test gist