anyways, if you are curious about how the console subsystem works: if you doubleclick on a console-subsystem .exe file in windows 95, you spawn the following things:
- a 32-bit windows process running the actual code of the .exe you just clicked; like all other windows processes, it is run within the main (“system”) DOS VM under the VMM32 hypervisor
- a whole new DOS virtual machine to the side
- an instance of
conagent.exe(a DOS program) running within the newly spawned VM; on one side,conagent.exetalks to the hypervisor’svcond.vxdmodule which connects it to the program’s console input and output; on the other, it uses the DOS console syscalls to read from the DOS VM’s virtualized keyboard and write text to its virtualized VGA text screen - if you’re running the program windowed, an instance of
winoldap(or rather,winoa386), which is a GUI app likewise running within the system VM; its job is to grab the VMM32’s virtualized text framebuffer for the VM and render it as a window via normal win32 GUI calls, and likewise route keyboard input to the VM - (if you’re running the app fullscreen,
conagent.exeand the DOS kernel calls it uses have direct access to the hardware, and just draw to the real VGA framebuffer) - (pressing Alt-Enter?
winoa386gets spawned/despawned and the framebuffer gets migrated)





