Andy Ball wrote:
Hello Maurice,
ML> CRT in gpc is based on a curses library (ncurses or > PDcurses).
Can gpc's CRT be told to use NetBSD's curses library instead of ncurses or PDcurses? I can install ncurses as a package, but can't help feeling that I shouldn't have to.
- Andy Ball
Hi Andy,
The ncurses people (Thomas Dickey now, also maintains xterm) have worked very hard to make ncurses compatible with terminals and curses programs going back to the ice age. Your curses should work.
To compile with curses, one must link with the library libcurses. In my older linux distros I think libcurses was merely a link to libncurses (but not anymore). So if gpc's CRT unit does not work with your curses, my guess is that its a linking issue with gpc, and not your curses. (I looked at the CRT unit files but didn't see the linker call.)
That being said, the modern console is not your typical terminal, and the gpc CRT unit (and crtdemo with ncurses) goes far beyond putting characters on a screen. Ncurses also provides panels, forms, dialogs, mouse interaction, etc. It is a good program to have on your system.
Rick.