Xref: utzoo comp.unix.ultrix:3934 comp.unix.wizards:22841 Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!mailrus!umich!samsung!usc!ucsd!helios.ee.lbl.gov!nosc!crash!ncr-sd!asihub!dan From: dan@asihub.AUTOSYS.COM (Dan O'Neill) Newsgroups: comp.unix.ultrix,comp.unix.wizards Subject: Usage of wscanw() from curses library Keywords: curses Message-ID: <278@asihub.AUTOSYS.COM> Date: 12 Jul 90 01:47:00 GMT Organization: Automated Systems Inc. Lines: 39 X-Local-Date: 11 Jul 90 18:47:00 PDT Under Ultrix 4.0 on a DS5000 I am having trouble with the function wscanw() in the curses library. Here is test program that I wrote to demonstrate the problem. #include #include #include main() { char filename[20]; initscr(); wmove(stdscr, 18, 1); wrefresh(stdscr); wscanw(stdscr, "%s", filename); endwin(); printf("filename: %s\n", filename); } This was compiled with the command: cc -g -o scan scan.c -lcurses -ltermlib When the program is run, the cursor is positioned correctly and it waits for input. After entering some text and pressing return, I expected the program to end. It does not. It seems to hang up and I have to kill the process from another window. Interrupts are ignored as well. I ran the program in the debugger and it never returns from wscanw(). Hope someone can provide some help. Thanks. -- Dan O'Neill dan@autosys.com {uunet|ncr-sd}!asihub!dan Automated Systems, Inc. San Diego R&D