hi all, i'm going to start again programming under linux. all i had done before this was some programs for DOS (i've been using linux for just a year) with Borland Pascal.
now in linux i'd like to start programming again, but there are some functions that i can't find, and that i can't implement.
for example, i need something as "delay(milliseconds)" but i can't find anything similar. ok, in C, i'd use "usleep()", but what in Pascal?
and, for example, again, "textcolor and textbackground" ?
readkey? keypressed?
and how to use Svgalib instead os DOS' BGI ?
please help me ASAP.
thanks in advance.
Hi!
Nicola Girardi wrote:
for example, i need something as "delay(milliseconds)" but i can't find anything similar. ok, in C, i'd use "usleep()", but what in Pascal?
Program Foo;
uses Crt;
begin Delay ( 42 ) end.
and, for example, again, "textcolor and textbackground" ?
Program Foo;
uses Crt;
begin TextColor ( yellow ); TextBackground ( blue ); writeln ( 'Hello, world!' ) end.
readkey? keypressed?
Guess what. (Hint: `uses Crt';-)
and how to use Svgalib instead os DOS' BGI ?
On our web site (http://home.pages.de/~GNU-Pascal/) look out for GRX and BGI2GRX. This will provide both a BGI-style interface and a completely new interface to portable graphics for SVGAlib, X11, plain DOS, or whatever.
please help me ASAP.
Soon enough, I hope ...
Peter
Nicola Girardi wrote:
for example, i need something as "delay(milliseconds)" but i can't find anything similar. ok, in C, i'd use "usleep()", but what in Pascal?
Program Foo;
uses Crt;
begin Delay ( 42 ) end.
and, for example, again, "textcolor and textbackground" ?
Program Foo;
uses Crt;
begin TextColor ( yellow ); TextBackground ( blue ); writeln ( 'Hello, world!' ) end.
readkey? keypressed?
Guess what. (Hint: `uses Crt';-)
hehe :) you're telling me to use Crt like i used to under DOS. but the compiler tells me that it can't find the module "crt"
what should i do?
and how to use Svgalib instead os DOS' BGI ?
On our web site (http://home.pages.de/~GNU-Pascal/) look out for GRX and BGI2GRX. This will provide both a BGI-style interface and a completely new interface to portable graphics for SVGAlib, X11, plain DOS, or whatever.
great! thanks alot
Hi again!
from Nicola Girardi on Mon, Jan 01, 1996
Your email went immediately to the bottom of my overfull incoming mailbox. Better adjust your clock.
you're telling me to use Crt like i used to under DOS. but the compiler tells me that it can't find the module "crt"
Judging from your other email, you already found it out: gpc --automake foo.pas
Peter