Hi, all
I'm running gpc-20041218, based on gcc 3.3.3, on a pc running RH
Enterprise. I have several programs that use basic cursor controls
-- wherex, wherey, clreol, and so on -- which I used to grab as externals:
Procedure clreol; C;
Procedure gotoxy (x : integer; y : integer ); C;
Function wherey : integer; C;
I have been unable to get the externals to "take" on this version of
gpc, though I've tried about 20 variants -- external, asm_name, just
about anything I could find in the docs and demos.
It seemed logical to just "use crt" instead. Unfortunately, the CRT
unit has resisted all my attempts at compilation. Specifically:
* crt.pas won't compile unless crtc.c has been compiled first
* "gcc -c crtc.c" fails because ncurses.h, panel.h, and term.h are
missing. (In fact, panel.h and term.h are in the units directory, but
presumably gcc wants them somewhere else.) My system claims to have
ncurses 5.4-13 installed, but apparently that is not sufficient.
I tried Willett's ncurses.gpc 20060207, but configure failed loudly
because it couldn't find ncurses.h (WHICH ncurses.h, and where does it
want it?).
I tried the PDCurses-2.6 on the GPC libraries page, and here again
configure failed (couldn't find Intrinsic.h).
I am stumped. What can I do to get simple cursor control in my programs?
many thanks,
Toby