Xref: utzoo comp.unix.questions:22787 comp.unix.wizards:22371 Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!usc!ucsd!ucselx!eckberg3 From: eckberg3@ucselx.sdsu.edu (Alex M. Lee) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Need help with Curses Message-ID: <1990Jun8.184903.17419@ucselx.sdsu.edu> Date: 8 Jun 90 18:49:03 GMT Organization: San Diego State University Computing Services Lines: 39 Dear Unix Wizards, I have the following simple program which use Curses package to read a file name. The problem is when you want to use backspace to correct the input the  will be echoed on the screen. I tried setting different terminal mode without success. Does anyone know how to solve it? Please E-mail me. Thanks in advance!! Alex (alee@ucselx.sdsu.edu) ---------------------------------------------------------------------- #include #include main(argc, argv) int argc; char *argv[]; { char str[8]; int curline = 0, curcol = 0; initscr(); nocbreak(); move(curline, curcol); addstr("Enter the file name - "); refresh(); getstr(str); printw("\nThe file name is %s\n", str); refresh(); endwin(); } -- ------------------------------------------------------------------------------ Alex M. Lee Internet : alee@ucselx.sdsu.edu 10645 Glendover Lane Uucp: ...!ucsd!sdsu!ucselx!alee San Diego, CA 92126 Telephone: (619) 271-7055