Code: Select all
OpenConsole()
PrintN("Blah blah!")
Delay(5000)
I'm on a Pixelbook, with the Linux beta stuff, and I cannot manage to open a console. Would be useful to do some unit tests.
Thanks.
Code: Select all
OpenConsole()
PrintN("Blah blah!")
Delay(5000)
When I test on both Linux and MacOS it works as the help file says.On Microsoft Windows, there are two different executable formats: Win32 and Console. If you want to create a standard console application, like 'dir', 'del' etc. you must compile the executable using the 'Console' format (Compiler Option menu in the PureBasic IDE). On Linux and OS X, there is no special Console format however setting the Compiler option to 'Console' will launch a terminal window automatically when you run your program from the IDE.
Code: Select all
$ sudo apt install xterm
Code: Select all
$ slackpkg install xterm
Thank you! You have saved me a great deal of hair pulling. A note should be added to the help fileMarc56us wrote: ↑Wed Jul 27, 2022 3:00 pm Hi all,
An answer to this old topic, because I found a solution while looking for a solution to a question on the Fr forum.
A linux application (compiled for console mode) opens a console from the IDE (after F5) only if xterm is installed.
I didn't find where this is configured, so I couldn't change this ($TERM doesn't seem to be used).