Again I make a game on pascal. Now using graph. It works only in Windows XP, and I have Ubuntu. Therefore, you have to use VM. But after quitting the game, I get a black screen. You have to restart the VM. If I press Alt + Enter from TurboPascal, and then I exit, then I have the same black screen. How to cope with this?

If I understand correctly, after exiting the graphics mode, I get into text mode. How can I get back to GUIshny Windows?

No need to write me "use another product." This task - his subtleties I did not choose.

  • PS The problem of programming is mediocre - most likely the use of software products. - gecube

1 answer 1

First, you must use the appropriate tools. If you write under DOS - put DOS. It is possible through the DOSBox emulator. Secondly, any emulation curve. And in fact, you have the following - a virtual machine under the host operating system (Ubuntu), in it - Windows XP. In Windows XP, NTVDM.EXE is running - in a simple way, DOS emulator. And it works sometimes rather crookedly with full-screen graphic applications. Especially to guess where the curvature lies, despite the fact that the VM program is not specified, there is no desire. Third, if you want graphical applications, master some normal library. Graph is not the best choice. In the end, to take Delphi / Lazarus, and then on the form to make a component like TImage and draw something in it is not so difficult.

  • I am writing a term paper to a friend, alas, in his university, they said pascal and that's it! :) - Jakeroid 2011
  • I use the last VirtualBox. - Jakeroid
  • Well done, specially zaminusovali? I’m saying - hangup after the graphics mode - a feature of DOS emulation in the Windows NT environment. Do not like it - put DOSBOX or DOS directly on the virtual machine. Then it will not hang. - gecube