A few words of thanks would be greatly appreciated.

Pascal Language - Screen management


Under Pascal Language screen management is done through functions and procedures of the predefined WinCrt unit. That is why in each program, you have to use the WinCrt unit (CRT with Free Pascal)

If by default, the title of a window is the name of the source file starting with its path, to modify it, you must put the predefined variable (Table of 80 characters) into the WinCrt unit:
  • WindowTitle using the procedure of the Strings unit: StrCopy.
  • And to close the window after the execution of the program: DoneWinCrt.
  • To move the cursor, use the GotoXY procedure:

Here is an Example

Program Management;   
Uses WinCrt, Strings;   
     StrCopy(WindowTitle, 'STOCK MANAGEMENT');   
     GotoXY (20, 10); (* row 10 column 20 *)   
     Write ('*');   

Thanks to Zouari Lazhar for this tip.

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Pascal Language - Screen management », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

1 Comment