Skip to main content
linked to man page
Source Link
Cristian Ciupitu
  • 2.6k
  • 1
  • 23
  • 31

man ioctl_ttyioctl_tty(2) I dont have, but a lookup of TIOCSTI on the kernel source (via FreeElectrons ) will show tiocsti "fake input character", which uses a tty_struct context.

man ioctl_tty I dont have, but a lookup of TIOCSTI on the kernel source (via FreeElectrons ) will show tiocsti "fake input character", which uses a tty_struct context.

ioctl_tty(2) I dont have, but a lookup of TIOCSTI on the kernel source (via FreeElectrons ) will show tiocsti "fake input character", which uses a tty_struct context.

clarified answer; added links
Source Link
Cristian Ciupitu
  • 2.6k
  • 1
  • 23
  • 31

Note: although TIOCSTI has currently beenwas revoked in BSDOpenBSD 6.2 (NovOct 2017), apparently the Linux Kernel developers are of the opposite mind, categorically refusing to revoke it (you can read more about this in the OpenBSD Journal).

Note: although TIOCSTI has currently been revoked in BSD (Nov 2017), apparently the Linux Kernel developers are of the opposite mind, categorically refusing to revoke it

Note: although TIOCSTI was revoked in OpenBSD 6.2 (Oct 2017), apparently the Linux Kernel developers are of the opposite mind, categorically refusing to revoke it (you can read more about this in the OpenBSD Journal).

minor
Source Link
Paul Wratt
  • 344
  • 2
  • 14

howeverHowever it does echo it to the screen as well. After many hours of further reseachresearch and experimentation the following is practical in a script or on the command line:

stty -echo; perl -le 'require "sys/ioctl.ph"; ioctl(STDIN, &TIOCSTI, $_) for split "", join " ", @ARGV ' `printf "hello"``_cmds_` ;stty echo

however it does echo it to the screen as well. After many hours of further reseach and experimentation the following is practical in a script or on the command line:

stty -echo; perl -le 'require "sys/ioctl.ph"; ioctl(STDIN, &TIOCSTI, $_) for split "", join " ", @ARGV ' `printf "hello"` ;stty echo

However it does echo it to the screen as well. After many hours of further research and experimentation the following is practical in a script or on the command line:

stty -echo; perl -le 'require "sys/ioctl.ph"; ioctl(STDIN, &TIOCSTI, $_) for split "", join " ", @ARGV ' `_cmds_` ;stty echo
it appears we have a winner
Source Link
Paul Wratt
  • 344
  • 2
  • 14
Loading
wording
Source Link
Paul Wratt
  • 344
  • 2
  • 14
Loading
Source Link
Paul Wratt
  • 344
  • 2
  • 14
Loading