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.

14 lines
260 B
Python

import os
import getch
from time import sleep
def fileWrite(text):
with open('the-record-getch3.txt', 'a') as file:
file.write(text)
file.close()
while 1:
text = getch.getch()
# sleep(1)
print(text)
fileWrite(text)