By the way, I think that the crt unit is portable. So your initial code should just work on Win32 or modern unixes.> the graphic commands line rectangle circle are not available in that compiler, because the dos VGA modes are of course no longer present. Are you use?? I think they should be available. Look for them here:http://www.freepascal.org/docs-html/rtl/index.html