Mail Archives: djgpp/1999/04/22/08:39:23
On 22 Apr 99, at 11:34, Eli Zaretskii wrote:
>
> On Tue, 20 Apr 1999, ROUSSEAU Axel wrote:
>
> > I need translate some Turbo Pascal function into GPC :
> >
> > textcolor (to set the color of the text)
> > gotoxy (to set the cursor in the screen)
>
> DJGPP supports these functions in the C library. I don't know how to
> access them from a Pascal program, though.
>
GPC DJGPP binaries for egcs-1.1.2 (v2gnu/egcs/gpce112b.zip) has Crt unit that
works through pdcurses. So You have to install the latest in place where GPC can
find it. I haven't really tested how it works so cannot say more.
Maybe it would be nice if somebody (from Pascal users) would write for DJGPP
Pascal unit with same functionality that would use libc.a directly. I'm not going to
do it myself as I'm practically not using Pascal.
Andris
- Raw text -