hello,
I'm using gpc on sparc-solaris for 2 mounths... I have a few questions i can't locate in the documentation i found (so RTFM welcome if you point me the so-called FM :-) ).
1. range check and buffer overflow check are in the todo list (7 in planned feature - misc)... But where is the implementation? nowhere? working on? alpha? beta? implemented but option not documented (yes, i'm dreaming a bit ;-) )?
2. with the crt unit, i can't have the accents (é,è and so on)... My students speeks french, so they find it's strange to eat pTt0 and not pâté :) ). Is it possible to display accent (they have xterm and dtterm ) or no way?
3. again with the crt unit, i can't display colors in xterm. Is it normal? It works in dtterm, but the default color is... black (xterm is white, and by default, it is gray).
4. to solve these problems, i tried to compile crt with -DX11, as said in the doc... I had to install pdcurs24 (from the libs directory) but once done, the -DX11 says me that he can't find the xpanel.h (indeed, it doesn't exists on this package, panel.h exists...) the error is: ---- In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/units/crtx.c:35: /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/units/crtc.c:62: xpanel.h: No such file or directory ----
Thanks for answers...
Francois Schoubben wrote:
- range check and buffer overflow check are in the todo list (7 in
planned feature - misc)... But where is the implementation? nowhere? working on? alpha? beta? implemented but option not documented (yes, i'm dreaming a bit ;-) )?
Not yet done, but near-top priority now. If I don't get distracted by more urgent jobs, I'll do it RSN.
- with the crt unit, i can't have the accents (é,Ú and so on)... My
students speeks french, so they find it's strange to eat pTt0 and not pâté :) ). Is it possible to display accent (they have xterm and dtterm ) or no way?
Call CRTInit at the start. This sets some sane defaults. Without that, the defaults are BP-compatible ...
- again with the crt unit, i can't display colors in xterm. Is it
normal? It works in dtterm, but the default color is... black (xterm is white, and by default, it is gray).
Provided your xterm can display colors at all (I guess so), you might have to set the TERM environment variable to xterm-color (or some other entry).
- to solve these problems, i tried to compile crt with -DX11, as said
in the doc... I had to install pdcurs24 (from the libs directory) but once done, the -DX11 says me that he can't find the xpanel.h (indeed, it doesn't exists on this package, panel.h exists...) the error is:
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/units/crtx.c:35: /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/units/crtc.c:62: xpanel.h: No such file or directory
I thought the PDcurses installation should install the file as xpanel.h, but since it didn't apparently, I suggest to rename it manually (otherwise it will conflict with panel.h from the installed curses library).
Frank