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