12-14-2022, 10:12 AM
(This post was last modified: 12-14-2022, 10:32 AM by mnrvovrfc.
Edit Reason: Should have done all my research before posting
)
Maybe it could be fixed with "$CONSOLE:ONLY". Otherwise, the "dummy console" that is the result of "SHELL", while summoning another program, might be subject to "_EXIT" to prevent the user from "accidentally" killing the other program or causing the other program to hang. This is critical on Linux in which sometimes an app is launched from the terminal. If the terminal is closed, so is the program that is launched from it.
I should have tested that the short while I was on Windows, errr...
At least it works for me on Manjaro KDE:
But it's not the "SHELL" function, yes I know.
Funny that I got this message on terminal after this user program ended:
EDIT: AAARGH! Got outfoxed by the one I was trying to outfox. I tried taking off the "_DONTWAIT" from the code above. Briefly it gave the message that it was going to start Firefox. Once that app was in place, however, the user program window suddenly turned into a clear lighter black with nothing in it. Pressing "X" in the top-right corner of that window did nothing. Taking away "_EXIT" produced the same behavior. Except with this user program, after I closed Firefox the user program window did respond and refused to allow clicking the icon to close the window and program, had to press escape key.
I should have tested that the short while I was on Windows, errr...
At least it works for me on Manjaro KDE:
Code: (Select All)
dim q as long
print "Please wait while I launch Mozilla's monster..."
q = _EXIT
SHELL _DONTWAIT "firefox"
print "Press [ESC] to exit."
print: print
do
_limit 100
q = _EXIT
if q > 0 then
print "No you may *not* exit in this way! Please press [ESC] instead!"
print: print
end if
ke$ = inkey$
loop until ke$ = chr$(27)
But it's not the "SHELL" function, yes I know.
Funny that I got this message on terminal after this user program ended:
Code: (Select All)
ATTENTION: default value of option mesa_glthread overridden by environment.
EDIT: AAARGH! Got outfoxed by the one I was trying to outfox. I tried taking off the "_DONTWAIT" from the code above. Briefly it gave the message that it was going to start Firefox. Once that app was in place, however, the user program window suddenly turned into a clear lighter black with nothing in it. Pressing "X" in the top-right corner of that window did nothing. Taking away "_EXIT" produced the same behavior. Except with this user program, after I closed Firefox the user program window did respond and refused to allow clicking the icon to close the window and program, had to press escape key.