It is currently Thu Sep 19, 2019 3:35 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: console - closeconsole()
PostPosted: Thu Sep 12, 2019 10:26 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 263
Location: Germany
Purebasic 5.71 X64 on mxlinux 18.3 x64
The closeconsole() command doesnt seem to do anything. The console stays open even after program termination and just gets reused for the output.

Code:
For i = 0 To 4
  If OpenConsole()
    PrintN("This is console #"+Str(i))
    PrintN("Press return to close console")
    Input()
    CloseConsole()
  EndIf
Next


If you close the terminal manually after the program ended, the Purebasic IDE will crash. It works as expected with the windows version.

_________________
webpage


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye