Curses HELP! Wanted

Don Taylor dont at tekig1.UUCP
Tue Jan 8 13:09:53 AEST 1985


X
     Could some generous person mail me a short note explaining what it is that
I am doing wrong.  I wrote a short program using curses, using another as an
example.  The example failed to do any input, but curses provides scanw(),
getstr(),  etc, so that should be no problem.  It seems that nothing I try will
make either work.  In desparation, I put an ordinary scanf() in place of the
scanw() and, except for moving the cursor without curses knowledge and messing
up a corner of the screen, it worked fine.  Scanw() on the other hand seems to
find almost anything other than what scanf() was perfectly happy to find.  The
manual claims 'scanw()    scanf through the standard screen', seems simple
enough for anyone.  The scanf() and scanw() use is identical.  The only calls
used are initscr(), clear(), standout(), mvprintw(), standend(), and refresh().
It's berkley 4.2, if it matters.
Thanks for any assistance.
Don Taylor
tektronix!tekig1!dont



More information about the Comp.lang.c mailing list