[rec.games.programmer] Problem with scanw in curses

srt@aerospace.aero.org (Scott "CBS" Turner) (04/29/89)

I've got a game program that uses a curses and has a call to 
scanw to read in an integer.  Unfortunately, it seems that backspace
and delete are disabled during this read, and I can't figure out
how to turn them back on.  I've tried using raw, noraw, etc. with
no effect.  Anyone have any idea what to do?

I've appended a little test program to this message if you want to 
play with this yourself.

						-- Scott Turner

#include <curses.h>
main()
{
  int foo;

  initscr();
  printw("Enter a number:");
  refresh();
  scanw("%d",&foo);
  printw("\nFoo is %d.\n", foo);
  refresh();
  getch();
  endwin();
  exit();
};