I tried the simple program below. It runs fine. I expected the CloseConsole() command to close the console window, but it doesn't.
I've tried RunProgram("open",~"-a Terminal \", "") to try to open a second console and send it the command "killall Terminal" to close all terminal windows, but haven't had any luck. This runs a second copy of the console app, but I've had no luck passing it the killall command either as parameters within the RunProgram command or an additional WriteProgramStringN command.
Code: Select all
OpenConsole()
EnableGraphicalConsole(1)
ConsoleLocate(0,0)
ConsoleTitle("My Console App")
ClearConsole()
For n = 2 To 10 Step 2
Print(Str(n) + " ")
Next
Input()
CloseConsole()
End