[Vm-dev] UI VM vs. Consol VM on Windows
Torsten Bergmann
astares at gmx.de
Fri Mar 10 14:49:18 UTC 2017
Hi,
for the virtual machine on Windows we have a UI VM and a headless console version. For instance "Squeak.exe"/"Pharo.exe"/... (UI VM) and
"SqueakConsole.exe"/"PharoConsole.exe"/... (Console version to access stdin, stdout and stderr)
IMHO there is no need for a separate and special console version on Windows. Maybe it was the easiest/quickest way to implement this
but usually one should be able to access/create and redirect the std handles even in a UI application. See
http://dslweb.nwnexus.com/~ast/dload/guicon.htm
for a start. Maybe it is possible to get rid of a separate "XXXConsole.exe" version so the VM on Windows behaves like on other platforms.
Maybe that als unifies/eases the build.
Side note:
Maybe there is also a difference when you start an executable with Explorer (double click) where you might need to create a new console vs.
starting the executable from an already existing console command line (where it might be possible to catch an existing handle). But this
could be evaluated with a simple C executable and (if working) transformed to the Open Smalltalk virtual machine.
Bye
T.
More information about the Vm-dev
mailing list