how to run pixilang without window?

Pixilang programming language
Post Reply
philipbergwerf
Posts: 174
Joined: Sat Mar 17, 2018 4:23 pm

how to run pixilang without window?

Post by philipbergwerf »

In the documentation I see under 'Pixilang info flags' PIXINFO_NOWINDOW. It sounds like it will run pixilang without creating a window. How to properly use this flag. Can I have a little example please?
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: how to run pixilang without window?

Post by NightRadio »

Two ways:
1) add "nowin" to the pixilang_config.ini
2) from command line: pixilang -cfg "nowin" yourapp.pixi
philipbergwerf
Posts: 174
Joined: Sat Mar 17, 2018 4:23 pm

Re: how to run pixilang without window?

Post by philipbergwerf »

My config looks like this:

Code: Select all

width 2560
height 1384
locale_lang en_US
frecent_y 153
frecent_xs 91
"nowin" 
Still when running something the window is appearing on my system. I have the newest version of Linux Lite. Is this normal?
philipbergwerf
Posts: 174
Joined: Sat Mar 17, 2018 4:23 pm

Re: how to run pixilang without window?

Post by philipbergwerf »

Ah I understand I removed the quotes and it works :)
Another question: Can you define in your program that it will not create a window? For example my tuning generator doesn't need a window to run.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: how to run pixilang without window?

Post by NightRadio »

Unfortunately you can't hide the window from the pixi code directly. At least in the current version...
Post Reply