Author Topic: $console in kubuntu  (Read 2974 times)

0 Members and 1 Guest are viewing this topic.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
$console in kubuntu
« 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
  [ You are not allowed to view this attachment ]  

Any suggestion?
Thanks for reading
Programming isn't difficult, only it's  consuming time and coffee

Offline _vince

  • Seasoned Forum Regular
  • Posts: 422
    • View Profile
Re: $console in kubuntu
« Reply #1 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

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: $console in kubuntu
« Reply #2 on: April 19, 2020, 01:26:27 pm »
Thanks _vince

I'll try it!
Programming isn't difficult, only it's  consuming time and coffee

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: $console in kubuntu
« Reply #3 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
Programming isn't difficult, only it's  consuming time and coffee

FellippeHeitor

  • Guest
Re: $console in kubuntu
« Reply #4 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.