Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!uwmcsd1!bbn!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Getchar w/wout echo Message-ID: <6588@haddock.ima.isc.com> Date: 25 Aug 88 21:03:33 GMT References: <371@marob.MASA.COM> <225800052@uxe.cso.uiuc.edu> <65197@sun.uucp> <302@quintus.UUCP> <1988Aug23.164855.26679@utzoo.uucp> <309@ Reply-To: karl@haddock.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 19 In article <65474@sun.uucp> swilson%thetone@Sun.COM (Scott Wilson) writes: >[ok@quintus (Richard O'Keefe) writes:] >>Who _cares_ how much baggage comes with Curses? > >[On a small machine, it makes a difference.] >And curses is not universally available. And if all I want is to read a raw character (no echo and no line editing), then curses is not only overkill, but may not work. What if I don't have a termcap/terminfo entry? The ioctl doesn't need it, but at least one version of curses will silently exit(1) if it can't find one. Also, I believe that curses insists on having complete control over the terminal; you can't reliably use stdio while curses is active. Finally, endwin() always attempts to move the cursor to the bottom of the screen, which is inappropriate. (A background voice is heard: "Why don't you suggest something better, then?") See my next article. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint