terminal-detector

Enumerate terminal windows and process details via Win32 APIs.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/okbest2024/openclaw-backup --skill terminal-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-detector
Source: https://github.com/okbest2024/openclaw-backup/tree/main/workspace/skills/terminal-detector
Command: npx skills add https://github.com/okbest2024/openclaw-backup --skill terminal-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires uiautomation, and includes scripts (resource) components.

What problem does it solve?

Identify and enumerate terminal windows on the system.

Core Features & Use Cases

  • Terminal discovery: Detects Windows Terminal, PowerShell, CMD, and elevated consoles, listing window titles, class names, and process information.
  • Automation-friendly outputs: Provides structured details suitable for scripting and integration into workflows.
  • Use Case: When debugging automation runs, quickly locate and inspect relevant terminal sessions and their associated processes.

Quick Start

Run the Python script detect_terminals_win32.py to detect and list all terminal windows.

Frequently Asked Questions about terminal-detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect all terminal windows on Windows for automation?

To detect terminal windows on Windows, you can use UI Automation and Win32 APIs to identify and enumerate Windows Terminal, PowerShell, and CMD instances. This process collects window titles, class names, handles, and PIDs to enable automation workflows.

Can I get process IDs and window handles from multiple PowerShell tabs?

Yes, you can get process IDs and window handles from multiple PowerShell tabs by enumerating all terminal windows. The detection mechanism supports Windows Terminal, CMD, and elevated instances across multiple tabs and windows to collect process details.

What is the best way to list elevated console instances for debugging?

The best way to list elevated console instances for debugging is to run a Python script that relies on UI Automation and Win32 APIs. It discovers elevated consoles and provides structured outputs with window titles, class names, and process information.

Does terminal window detection work with both CMD and Windows Terminal?

Yes, terminal window detection works with both CMD and Windows Terminal. It identifies and enumerates all terminal windows on the system, including PowerShell, CMD, Windows Terminal, and elevated instances across multiple tabs.

Do I need the uiautomation package to identify terminal sessions?

Yes, you need the uiautomation package to identify terminal sessions. The detection script relies on the uiautomation dependency along with Win32 APIs to collect window titles, class names, handles, PIDs, and optional process details.