fenrir/play zone/pasteClipboardDemo.py

12 lines
259 B
Python
Raw Normal View History

2023-01-09 20:08:13 -05:00
#!/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')