Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcnc!philabs!nbc1!abs From: abs@nbc1.UUCP (Andrew Siegel) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Re: cbreak mode Message-ID: <194@nbc1.UUCP> Date: Thu, 15-Jan-87 12:27:29 EST Article-I.D.: nbc1.194 Posted: Thu Jan 15 12:27:29 1987 Date-Received: Sat, 17-Jan-87 00:13:47 EST References: <1484@cit-vax.Caltech.Edu> Organization: NBC Computer Imaging, New York, NY Lines: 23 Xref: mnetor comp.unix.wizards:616 comp.unix.questions:689 > ... I found that the program > > #include > #include > > main() > { > cbreak(); > nocbreak(); > } > > would leave the machine in cbreak mode. Furthermore, I > wrote my own routines to set and unset cbreak mode using > ioctl() and had the same result. If you're using curses, you must begin your program with a call to initscr(), and terminate it with endwin(). The endwin() call returns the tty parameters to their original setting. Good luck. -- Andrew Siegel, N2CN NBC Computer Imaging, New York, NY philabs!nbc1!abs (212)664-5776