paste demo

This commit is contained in:
Chrys 2023-01-10 02:08:13 +01:00
parent 20f2182c8a
commit 99889d4c6c

11
play zone/pasteClipboardDemo.py Executable file
View File

@ -0,0 +1,11 @@
#!/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')