To exit Turbo Pascal, go to File> Exit to exit

Note, if there are any unsaved files, it will notify you if it is saved before exiting

It is recommended to use this method to exit Turbo Pascal, do not use the key combination to exit or click the X corner of the window because it will cause the file to be saved or changed.

  • See more items for details: 

Keyboard shortcut

Notes When Using Software