8 ttinput - Inject console input in a terminal as if the user typed
12 echo Lorm ipsum | ttinput /dev/pts/1
16 L<https://johnlane.ie/injecting-terminal-input.html>
24 $tty = shift @ARGV || '/dev/tty';
25 sysopen $fd, $tty, O_WRONLY
|O_NONBLOCK
or die "open $tty: $!\n";;
31 ioctl($fd, 0x5412, $ch) or die "ioctl: $!\n";