Name
EnableAdvancedConsole -- put console into advanced mode (V10.0)
Synopsis
EnableAdvancedConsole()
Platforms
Linux, macOS, Windows

Function
This function will clear the console screen and put the console into advanced mode. Most functions of the console library require the console to be in advanced mode because things like free cursor positioning, colors, input handling, etc. are not available in standard console mode. Thus, EnableAdvancedConsole() is typically the first function to call when you want to have advanced control over the console.

To go back to normal console mode, call the DisableAdvancedConsole() function.

Please also read the chapter on Hollywood and the console to learn more about using Hollywood in console mode. See Console mode for details.

Inputs
none

Example
EnableAdvancedConsole()
w, h = GetConsoleSize()
s$ = "Hello World!"
SetConsoleCursor((w - StrLen(s$)) / 2, h / 2)
ConsolePrintNR(s$)
RefreshConsole()
The code above prints the string "Hello World" centered in the console.

Show TOC