www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/22/08:39:23

Message-ID: <B0000084505@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: djgpp AT delorie DOT com, rousseau AT fil DOT univ-lille1 DOT fr
Date: Thu, 22 Apr 1999 15:38:44 +0300
MIME-Version: 1.0
Subject: Re: translate TP -> GPC (2nd part)
References: <371C8F74 DOT 6F75 AT fil DOT univ-lille1 DOT fr>
In-reply-to: <Pine.SUN.3.91.990422113315.15748M-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.02b14)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019