Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucsfcgl.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ucbvax!ucsfcgl!arnold From: arnold@ucsfcgl.UUCP (Ken Arnold%CGL) Newsgroups: net.lang.c Subject: Re: Curses HELP! Wanted Message-ID: <421@ucsfcgl.UUCP> Date: Tue, 8-Jan-85 17:45:26 EST Article-I.D.: ucsfcgl.421 Posted: Tue Jan 8 17:45:26 1985 Date-Received: Fri, 11-Jan-85 23:24:10 EST References: <1815@tekig1.UUCP> Reply-To: arnold@ucsfcgl.UUCP (PUT YOUR NAME HERE) Organization: UCSF Computer Graphics Lab Lines: 23 Summary: In article <1815@tekig1.UUCP> dont@tekig1.UUCP (Don Taylor) writes: >X > Could some generous person mail me a short note explaining what it is that >I am doing wrong.... It seems that nothing I try will make [scanw() or >getstr()] work. I'm posting this to the net to increase general knowledge of this and to increase the amount of embarassment to the person who blew this, namely me. Berkeley 4.2 curses' scanw() and getstr() do not work for reasons I never figured out, since I never used them and I didn't know anyone who did, and nobody every paid me to do so. I always handle the input myself, since no general routine can usually handle the kind of input I'm trying to do. I just turn off echo() and turn on cbreak mode, and do my own echoing. Unfortunately, I would recommend that you do the same. Personally, had I to do it over again, I would just delete them all, and add some general routine that would handle simple text echoing given some parameters as to maximum length and terminating characters. Ken Arnold