terminal-emulator/terminal/__main__.py

14 lines
239 B
Python

import keyboard
import time
def main():
while True:
pressed_key = keyboard.read_event()
if pressed_key.event_type == 'down':
print(pressed_key.name.upper(), end='')
if __name__ == '__main__':
main()