Curses HELP! Wanted

Ken Arnold%CGL arnold at ucsfcgl.UUCP
Wed Jan 9 08:45:26 AEST 1985


In article <1815 at tekig1.UUCP> dont at 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



More information about the Comp.lang.c mailing list