Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When did CONSOLE break?
#1
https://qb64phoenix.com/qb64wiki/index.php/$CONSOLE

Example 1:

Code: (Select All)
$Console
_Delay 4

_Console Off
_Delay 4
_Console On

_Dest _Console
Print "Close this console window or click main window and press a key!"

_CONSOLE OFF does not hide the console in bird edition. Needless to say no idea if _CONSOLE ON would toggle it back on. It all works in 2.1.

Tested Win11 only.
Reply
#2
I think it's just an IDE thing, it now runs console programs using `cmd /c`, that's probably a bug since Windows will launch you a console anyway (and when the program attaches to an existing console it can't hide it). The `cmd /c` is still necessary to make the logging cmd appear but that's only necessary if you have 'display logging' turned on.

Regardless, if you run the program directly from explorer then it should work as expected with the console window hiding, so the program itself is fine.
Reply
#3
Yep that was it, you da (ds)man.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Book for sanity/insanity break: "10 PRINT CHR$(205.5+RND(1)); : GOTO 10" CharlieJV 4 1,025 08-22-2023, 08:15 PM
Last Post: bplus
  under linux Program Console BUG Coolman 10 2,099 05-29-2022, 08:04 PM
Last Post: Coolman
  Question about the console mode Coolman 2 679 05-26-2022, 05:31 PM
Last Post: Coolman

Forum Jump:


Users browsing this thread: 1 Guest(s)