fenrir/play zone/pasteClipboardDemo.py
2023-01-10 02:08:13 +01:00

12 lines
259 B
Python
Executable File

#!/bin/python3
import termios
import fcntl
def injectTextToScreen(text):
useScreen = "/dev/tty5"
with open(useScreen, 'w') as fd:
for c in text:
fcntl.ioctl(fd, termios.TIOCSTI, c)
injectTextToScreen('this is a test that works')