paste demo
This commit is contained in:
parent
20f2182c8a
commit
99889d4c6c
11
play zone/pasteClipboardDemo.py
Executable file
11
play zone/pasteClipboardDemo.py
Executable 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')
|
Loading…
Reference in New Issue
Block a user