OpenConsole()
Syntax
Result = OpenConsole()Description
Open a console window. This function must be called before any other function of this library. Only one console can be opened at the same time in a PureBasic program.
If Result is 0, it has failed and all further call to console commands must be disabled. The console can be closed using the CloseConsole() command.
With EnableGraphicalConsole() the console can be switched between text and graphics mode.
On Microsoft Windows, there is two differents executable formats: Win32 and Console. If you want to create a standard console application, like 'dir', 'del' etc.. you must compile the executable using the 'Console' format (Compiler Option menu in the PureBasic IDE).
Example:OpenConsole() Delay(2000) End
Supported OS
All