ex5.pp 564 B

123456789101112131415161718192021
  1. Program Example5;
  2. uses Crt;
  3. { Program to demonstrate the Window function. }
  4. begin
  5. ClrScr;
  6. WriteLn('Creating a window from 30,10 to 50,20');
  7. Window(30,10,50,20);
  8. WriteLn('We are now writing in this small window we just created, we '+
  9. 'can''t get outside it when writing long lines like this one');
  10. Write('Press any key to clear the window');
  11. ReadKey;
  12. ClrScr;
  13. Write('The window is cleared, press any key to restore to fullscreen');
  14. ReadKey;
  15. {Full Screen is 80x25}
  16. Window(1,1,80,25);
  17. Clrscr;
  18. Writeln('Back in Full Screen');
  19. end.