Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site drivax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!sun!amdahl!drivax!holloway From: holloway@drivax.UUCP (Bruce Holloway) Newsgroups: net.wanted.sources,net.sources.d Subject: BSD equivalents to System V curses functionality Message-ID: <331@drivax.UUCP> Date: Tue, 11-Mar-86 13:18:45 EST Article-I.D.: drivax.331 Posted: Tue Mar 11 13:18:45 1986 Date-Received: Fri, 14-Mar-86 04:10:46 EST Distribution: net Organization: Digital Research, Monterey, CA Lines: 29 Xref: watmath net.wanted.sources:2005 net.sources.d:12 Our System V curses library has the following functions, but BSD curses doesn't. We're just about to go from System V to BSD, and I'd like to port some programs over that use these functions. Could anyone tell me the equivalent BSD curses functions, or post the source to some equivalents? Routine Function =================== ========================================= beep() Beeps the terminal cbreak() Put the terminal into cbreak mode saveterm() Save the current terminal characteristics resetterm() Restore previously saved TTY chars nocbreak() Remove cbreak mode Also, how do you tell when a character is ready on stdin in cbreak mode? The only method that comes to mind is to test "feof(stdin)" frequently, but that comes back "TRUE" in every case. -- +----------------------------------------------------------------------------+ |Whatever I write are not the opinions or policies of Digital Research, Inc.,| |and probably won't be in the foreseeable future. | +----------------------------------------------------------------------------+ Bruce Holloway ....!ucbvax!hplabs!amdahl!drivax!holloway (I'm not THAT Bruce Holloway, I'm the other one.)