Creating an SDL (OSWindow) window without showing the pharo interface

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
kmo
Reply | Threaded
Open this post in threaded view
|

Creating an SDL (OSWindow) window without showing the pharo interface

kmo
Does anyone know how to get an OSWindow window to open from Pharo without
showing the pharo IDE?

I thought the headless VM might do this.

So I downloaded the latest headless VM and Pharo 9.

Then if I issue the command line
/
pharo-ui Pharo.image eval OSWindowWorldMorph new open/

I get an SDL window but also the pharo user interface which I don't want.

But if I try

/pharo Pharo.image --no-quit eval OSWindowWorldMorph new open/

nothing happens. Pharo runs but nothing shows up. I expected just to get the
SDL window.

Can this be done in pharo? Anyone know the technique?



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Reply | Threaded
Open this post in threaded view
|

Re: Creating an SDL (OSWindow) window without showing the pharo interface

Russ Whaley
I am very interested as well.  If you discover the technique, can you post it back here?
Thanks!
Russ

On Tue, Feb 2, 2021 at 11:28 AM kmo <[hidden email]> wrote:
Does anyone know how to get an OSWindow window to open from Pharo without
showing the pharo IDE?

I thought the headless VM might do this.

So I downloaded the latest headless VM and Pharo 9.

Then if I issue the command line
/
pharo-ui Pharo.image eval OSWindowWorldMorph new open/

I get an SDL window but also the pharo user interface which I don't want.

But if I try

/pharo Pharo.image --no-quit eval OSWindowWorldMorph new open/

nothing happens. Pharo runs but nothing shows up. I expected just to get the
SDL window.

Can this be done in pharo? Anyone know the technique?



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html


--
Russ Whaley
[hidden email]
kmo
Reply | Threaded
Open this post in threaded view
|

Re: Creating an SDL (OSWindow) window without showing the pharo interface

kmo
Russ -

The trick is to put the --no-quit after the eval not before it. I was
putting it in the wrong place.

This should work:

./pharo Pharo.image eval --no-quit "OSWindowWorldMorph new open"

This works with the latest headless VM and Pharo 9.

Hope this helps.

Ken
 



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Reply | Threaded
Open this post in threaded view
|

Re: Creating an SDL (OSWindow) window without showing the pharo interface

Russ Whaley
Thanks!  Can’t wait to try it!

On Sun, May 2, 2021 at 6:15 AM kmo <[hidden email]> wrote:
Russ -

The trick is to put the --no-quit after the eval not before it. I was
putting it in the wrong place.

This should work:

./pharo Pharo.image eval --no-quit "OSWindowWorldMorph new open"

This works with the latest headless VM and Pharo 9.

Hope this helps.

Ken




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
--
Russ Whaley
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Creating an SDL (OSWindow) window without showing the pharo interface

Russ Whaley
What folder do you need to reference?  I’m assuming the VMS headless folder is the ./pharo? ... and Pharo.image is the path and image name for the particular image you want to use?

On Sun, May 2, 2021 at 2:00 PM Russ Whaley <[hidden email]> wrote:
Thanks!  Can’t wait to try it!

On Sun, May 2, 2021 at 6:15 AM kmo <[hidden email]> wrote:
Russ -

The trick is to put the --no-quit after the eval not before it. I was
putting it in the wrong place.

This should work:

./pharo Pharo.image eval --no-quit "OSWindowWorldMorph new open"

This works with the latest headless VM and Pharo 9.

Hope this helps.

Ken




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
--
Russ Whaley
[hidden email]
--
Russ Whaley
[hidden email]
kmo
Reply | Threaded
Open this post in threaded view
|

Re: Creating an SDL (OSWindow) window without showing the pharo interface

kmo
Yes, pharo is the script that starts the headless VM without the IDE
(pharo-ui is the script that starts the headless VM with the IDE).
Pharo.image is the default Pharo 9 image - obviously you can use your own
tailored image.  

I downloaded the headless VM and the latest Pharo like this -

curl https://get.pharo.org/64/90+vmHeadlessLatest | bash

This installed everything into a folder. i opened a terminal on the folder
and issued the command line

I'm on Linux - not sure how this all works on Windows or Mac.

By the way - I could not get this to work from Pharo Launcher - perhaps
because I was using an older Pharo 9 - but despite editing the configuration
in the Pharo Launcher nothing worked.

Hope this helps.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html