Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!chinacat!chip From: chip@chinacat.Unicom.COM (Chip Rosenthal) Newsgroups: comp.unix.xenix.sco Subject: Re: Faking a Control Q from a device Keywords: XON, Cnt-Q Message-ID: <1561@chinacat.Unicom.COM> Date: 7 Sep 90 18:59:57 GMT References: <1120@xroads.UUCP> Organization: Unicom Systems Development, Austin, TX Lines: 37 In article <1120@xroads.UUCP> willis@xroads.UUCP (Raymond Willis) writes: >Is there a way to make the system think the plotter has sent a Control Q? If you compile the following as "xon", you could then do, for example, "xon /dev/tty2a" to unstick tty2a. --- cut here ----------------------------------------------------------------- #include #include #include main(argc,argv) int argc; char *argv[]; { int fd; if ( argc != 2 ) { fprintf(stderr,"usage: %s device\n",argv[0]); exit(1); } if ( (fd=open(argv[1],O_RDONLY)) < 0 ) { perror(argv[1]); exit(1); } if ( ioctl(fd,TCXONC,1) != 0 ) { perror(argv[1]); exit(1); } close(fd); exit(0); } --- cut here ----------------------------------------------------------------- -- Chip Rosenthal Unicom Systems Development, 512-482-8260 Our motto is: We never say, "But it works with DOS."