diff --git a/play zone/pasteClipboardDemo.py b/play zone/pasteClipboardDemo.py new file mode 100755 index 00000000..94c32cfc --- /dev/null +++ b/play zone/pasteClipboardDemo.py @@ -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')