Path: utzoo!utgpu!cs.utexas.edu!wuarchive!uunet!orca!north.pole!Santa From: :morF Newsgroups: alt.hackers Subject: TIOCSTI Message-ID: <1991May16.145223.21248@dsd.es.com> Date: 16 May 91 14:52:23 GMT Sender: galt@baby (Greg Alt - Perp) Organization: or lack thereof... Lines: 21 Approved: by_your_momma Nntp-Posting-Host: 130.187.85.165 Here's a little piece of code that works on some machines... But of course, only use it for tty's that are your own... #include #include #include #include main(argc,argv) int argc; char *argv[]; { int fd; char data; fd=open(argv[1],O_WRONLY | O_APPEND,0); while(1) { data=getchar(); ioctl(fd,TIOCSTI,&data); } }