Name
GetConsoleWindow -- return active console window (V10.0)
Synopsis
id = GetConsoleWindow()
Library
console

Platforms
Linux, macOS, Windows

Function
This function returns the currently active console window. If no console window has been made active using SelectConsoleWindow(), -1 will be returned.

You must enable advanced console mode using EnableAdvancedConsole() before you can use this function. See EnableAdvancedConsole for details.

Inputs
none

Results
id
id of the active console window or -1 if the default screen is active

Show TOC