pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

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

K
kmo
Tue, Feb 2, 2021 4:27 PM

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

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
RW
Russ Whaley
Wed, Feb 3, 2021 3:31 PM

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 voxkmp@gmail.com 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
whaley.russ@gmail.com

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 <voxkmp@gmail.com> 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 whaley.russ@gmail.com
K
kmo
Sun, May 2, 2021 10:15 AM

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 - 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
RW
Russ Whaley
Sun, May 2, 2021 6:00 PM

Thanks!  Can’t wait to try it!

On Sun, May 2, 2021 at 6:15 AM kmo voxkmp@gmail.com 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
whaley.russ@gmail.com

Thanks! Can’t wait to try it! On Sun, May 2, 2021 at 6:15 AM kmo <voxkmp@gmail.com> 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 whaley.russ@gmail.com
RW
Russ Whaley
Sun, May 2, 2021 7:51 PM

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 whaley.russ@gmail.com wrote:

Thanks!  Can’t wait to try it!

On Sun, May 2, 2021 at 6:15 AM kmo voxkmp@gmail.com 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
whaley.russ@gmail.com

--
Russ Whaley
whaley.russ@gmail.com

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 <whaley.russ@gmail.com> wrote: > Thanks! Can’t wait to try it! > > On Sun, May 2, 2021 at 6:15 AM kmo <voxkmp@gmail.com> 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 > whaley.russ@gmail.com > -- Russ Whaley whaley.russ@gmail.com
K
kmo
Mon, May 3, 2021 8:29 AM

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

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