2 * sti.c: put text in some tty input buffer - aeb, 951009
4 * You may have to be root if the tty is not your controlling tty.
12 main(int argc, char **argv) {
17 fprintf(stderr, "call: sti tty text\n");
20 fd = open(argv[1], O_RDONLY);
23 fprintf(stderr, "sti: could not open tty\n");
28 if(ioctl(fd, TIOCSTI, s)) {
30 fprintf(stderr, "sti: TIOCSTI ioctl failed\n");