TCC > Variables & Functions > Functions:
Comments (...)
@CONSOLE[title] : Returns 1 if the specified window title belongs to a console window; 0 if it does not. The title may include wildcards.
Help URL: http://jpsoft.com/help/index.htm?f_console.htm