QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: TempodiBasic on April 18, 2020, 01:15:15 pm

Title: $console in kubuntu
Post by: TempodiBasic on April 18, 2020, 01:15:15 pm
Hi
going deep in QB64 I'm learning to use $console and correlated commands for debug!

Well on my old HP with dualboot Kubunt (just now updated to 16.04) and Windows 7
when I compile in Linux I have no console screen
see here
  [ This attachment cannot be displayed inline in 'Print Page' view ]  

Any suggestion?
Thanks for reading
Title: Re: $console in kubuntu
Post by: _vince on April 18, 2020, 01:44:08 pm
open a terminal or 'konsole', navigate to qb64 directory and run
./qb64 console1.bas

the IDE will pop up but output will remain in the console, for a total of 3 windows, you may or may not want to remove the graphics window
Title: Re: $console in kubuntu
Post by: TempodiBasic on April 19, 2020, 01:26:27 pm
Thanks _vince

I'll try it!
Title: Re: $console in kubuntu
Post by: TempodiBasic on April 20, 2020, 06:42:39 pm
Hi _vince
thanks for your tip but in my kubuntu doesn't work.
Also calling the executable from into Konsole I have no luck!

Someone has had a similar issue with _console $console in linux?

Thanks for feedback
Title: Re: $console in kubuntu
Post by: FellippeHeitor on April 20, 2020, 07:29:23 pm
I'm running Lubuntu in a VM (where I do most testing when we have to release a new version of QB64) but I guess I never really had to test this.

Code: QB64: [Select]
  1. PRINT "to window"
  2. _ECHO "to console"

Using $CONSOLE in a program won't indeed create a new console window as one would expect (as Windows does, for example). But in my test it did work as _vince indicated (if started from a console window, it is possible to output to console).

It is something to review before v1.4.5 comes out. Thanks for pointing it out, Tempodi.