CloseConsole()

Syntax

CloseConsole()
Description
Close the console previously opened with OpenConsole(). Once the console has been closed, it's not possible to use any functions from this library, unless you open the console again. The console will automatically be closed when your program ends.

Parameters:
This command has no parameters.


Return value:
This command does not return a value.


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

Supported OS

Windows, Linux, MacOS X

<- ClearConsole() - Console Index - ConsoleColor() ->