ben@nynexst.com (Ben Chigier) (04/13/91)
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