Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!uupsi!nynexst.com!nynexst.com!ben From: ben@nynexst.com (Ben Chigier) Newsgroups: comp.sys.mips Subject: help with ioctl's Keywords: termio, sgttyb, tty Message-ID: <1991Apr12.212616.8964@nynexst.com> Date: 12 Apr 91 21:26:16 GMT Sender: news@nynexst.com (For News purposes) Reply-To: ben@miata.nynexst.com (Ben Chigier) Organization: NYNEX Science and Technology, White Plains, N.Y. Lines: 23 I have a device (a Dectalk a speech synthesizer) hooked up to /dev/tty1 on my magnum and would like to be able to set up the tty port to not have any buffering on input and output. The following is what I do on a sparcstaion1 and it works ok but when I compile on the magnum, (having bsd43 in my path first) and run, I cannot talk to the Dectalk. Anyone know how the tty's are handled differently on Mips box's vs suns? And more importantly how I could get this to work. turn_on_raw_mode(str) int str; { struct sgttyb nowait; ioctl(str, TIOCGETP, &nowait); nowait.sg_flags |= CBREAK; nowait.sg_flags |= ECHO; ioctl(str, TIOCSETP, &nowait); } Ben Chigier. ben@nynexst.com