Xref: utzoo comp.sources.games.bugs:695 rec.games.programmer:850 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie.macc.wisc.edu!indri!polyslo!usc!aero!srt From: srt@aerospace.aero.org (Scott "CBS" Turner) Newsgroups: comp.sources.games.bugs,rec.games.programmer Subject: Problem with scanw in curses Message-ID: <50391@aerospace.AERO.ORG> Date: 28 Apr 89 19:52:27 GMT Reply-To: srt@aero.UUCP (Scott "CBS" Turner) Distribution: usa Organization: The Aerospace Corporation, El Segundo, CA Lines: 26 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 main() { int foo; initscr(); printw("Enter a number:"); refresh(); scanw("%d",&foo); printw("\nFoo is %d.\n", foo); refresh(); getch(); endwin(); exit(); };