willett wrote:
I'm trying to use ncurses and seem to be missing something dumb. I only want to use ncurses, not the CRT unit. My program is:
program testnc(input,output); begin writeln('begin test ncurses, before call to initscr');
initscr; writeln('after initscr'); endwin;
writeln('after endwin'); end.
When I compile the program, using:
gpc testnc.pas -lncurses -o testnc
I get compilation errors:
testnc.pas: In main program: testnc.pas:10: error: undeclared identifier `initscr' (first use in this routine) testnc.pas:12: error: undeclared identifier `endwin' (first use in this routine)
I tried uses GPC; (no change) and uses ncurses; (error: module/unit interface `ncurses' could not be imported)
What am I missing?
There is no Pascal (GPC) translation of the ncurses interface AFAIK. You can write one yourself which is a bit of work. Or use the CRT unit instead ... ;-) Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8