You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
250 B
Python

#!/usr/bin/env python3
from kb import write_str
from time import sleep
from getch import _Getch
get = _Getch();
while True:
input_key = get()
print(input_key)
#if input_key == "?":
# break
if ord(input_key) == 27:
break
write_str(input_key)