Usage of wscanw() from curses library
Dan O'Neill
dan at asihub.AUTOSYS.COM
Thu Jul 12 11:47:00 AEST 1990
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 <stdio.h>
#include <curses.h>
#include <signal.h>
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 at autosys.com {uunet|ncr-sd}!asihub!dan
Automated Systems, Inc. San Diego R&D
More information about the Comp.unix.wizards
mailing list