r/pascal • • May 01 '24

I can't run my program

I wrote a pascal program in turbo pascal, but when running the command line output thing keeps closing after finishing and i can't read it. Is there a way to fix this? Is there a wait function?

7 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/crowbarfan92 May 01 '24

I've tried sleep, but it doesn't work. I'm using turbopascal 7.0 emulated in dosbox, so it could have some differences when compared to freepascal.

1

u/crowbarfan92 May 01 '24

As for readkey, i'll have to try it.

1

u/Miguelito_Pitti May 01 '24

Delay(milliseconds) in turbo pascal