Win11 - Detect if console app is running under Conhost, Terminal, or Powershell lazarus / 21-General ---------------------------------------------------------------------- dculp · 2025-04-09 12:43 Win11 offers 3 console types -    1. An old-style non-tabbed console (see attached). (Type "conhost" in Windows search box.)    2. A revised terminal with multiple tabs (see attached with 2 open tabs). (Type "terminal" in Windows search box.)    3. Powershell multi-tabbed. The "Default terminal application" can be changed through a drop-down menu in 2 or 3 (see attached). The default will then be started whenever "cmd" is entered in Windows search box. When running under 2 or 3 my app can encounter windowing problems. I may discuss this in another post. In the meantime, when my app starts is there a way to detect if it has started under 2 or 3? If so then the app could take corrective action. This should be automatic without user intervention. For example, if the app is loaded by a batch file then something like -- Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if detected running under 2 or 3 then conhost.exe myapp.exe  This detection might be by Pascal code or some Windows method. Thanks.