Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pascal
#1
I just got a copy of Dev-Pascal, and I was wondering if there is a command similar to QBasic's sleep? Thanks in advance.
Reply
#2
http://www.irietools.com/iriepascal/prog...rocs_sleep
It's not standard, but it does work apparently.
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Reply
#3
thanks rpgfan, that website looks really useful! 8)
Reply
#4
You mean the readln(); command? It waits for a keypress...
[Image: 1403.png]
^ Infrosoft
http://www.thecodeyouneed.us.to/ - A wiki of source code, mostly in PHP and FreeBASIC
http://www.osadvocacy.uk.to/ - Your opinion matters no matter your OS
Reply
#5
kevin, i tried that, but it waits for you to press enter.
this is another way i figured it out
i dont know what crt is, but i saw it in an example

Code:
program whatever
uses crt;

procedure waitforkey()
begin
repeat;
until keypressed
end.

begin
writeln('press any key');
waitforkey;
writeln('you pressed it');
end.
Reply
#6
CRT is the console unit (under win32). It has all the console functions in it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)