Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:ARCANGEL0 EVA Terminal Emulator

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Security
Last Updated 2026-10-29 12:00 GMT

Overview

A supported graphical terminal emulator on the host for displaying interactive armory tool installation and uninstallation scripts.

Description

This environment requires a supported terminal emulator to be installed on the host system. Mitsu opens a separate terminal window to run armory tool install/uninstall scripts so the operator can see the output and enter credentials (e.g., sudo password) interactively. The supported terminals are detected in priority order, with preference given to the terminal Mitsu itself is running in (detected via `TERM_PROGRAM` or `TERMINAL` environment variables, or `KITTY_WINDOW_ID`). Supported terminals include Ghostty, Kitty, GNOME Terminal, Xfce4 Terminal, Konsole, Alacritty, WezTerm, Foot, and xterm.

Usage

Use this environment when installing or uninstalling armory tools via `open_install_terminal`. If no supported terminal emulator is found, the armory install/uninstall operation fails with an `ArmoryError`.

System Requirements

Category Requirement Notes
OS Linux with GUI Terminal emulator must be available
Terminal One of the supported list See Dependencies

Dependencies

System Packages

At least one of:

  • `ghostty`
  • `kitty`
  • `gnome-terminal`
  • `xfce4-terminal`
  • `konsole`
  • `alacritty`
  • `wezterm`
  • `foot`
  • `xterm`
  • `x-terminal-emulator`

Python Packages

None beyond the base Python environment.

Credentials

No environment variables are required. The terminal inherits the user's shell environment.

  • `TERM_PROGRAM` (optional): Used to detect the current terminal for preference
  • `TERMINAL` (optional): Override terminal selection
  • `KITTY_WINDOW_ID` (optional): Auto-detects Kitty as preferred

Quick Install

# Check if any supported terminal is available
which ghostty || which kitty || which gnome-terminal || which xfce4-terminal \
  || which konsole || which alacritty || which wezterm || which foot || which xterm

Code Evidence

Terminal detection list from `services/redteam_armory.py:29-40`:

_TERMINALS = (
    "ghostty", "kitty", "gnome-terminal", "xfce4-terminal",
    "konsole", "alacritty", "wezterm", "foot", "xterm",
    "x-terminal-emulator",
)

Terminal preference detection from `services/redteam_armory.py:473-496`:

def _find_terminal() -> tuple[str, str] | None:
    aliases = {
        "ghostty": "ghostty", "kitty": "kitty", "wezterm": "wezterm",
        "alacritty": "alacritty", "foot": "foot",
        "xfce4-terminal": "xfce4-terminal",
        "gnome-terminal": "gnome-terminal",
        "konsole": "konsole", "xterm": "xterm",
    }
    preferred = aliases.get(os.environ.get("TERM_PROGRAM", "").casefold())
    configured = Path(os.environ.get("TERMINAL", "")).name
    preferred = preferred or (configured if configured in _TERMINALS else None)
    if os.environ.get("KITTY_WINDOW_ID"):
        preferred = "kitty"
    candidates = ((preferred,) if preferred else ()) + tuple(
        terminal for terminal in _TERMINALS if terminal != preferred
    )
    return next(
        ((terminal, path) for terminal in candidates if (path := shutil.which(terminal))),
        None,
    )

Error when no terminal found from `services/redteam_armory.py:606-607`:

if terminal is None:
    raise ArmoryError("No supported terminal emulator was found to show the package operation.")

Common Errors

Error Message Cause Solution
`No supported terminal emulator was found` None of the supported terminals installed Install one: `sudo apt-get install gnome-terminal`
`Could not open {terminal}` Terminal binary exists but fails to launch Check display server and terminal configuration

Compatibility Notes

  • Kitty single-instance: Uses `--single-instance --wait-for-single-instance-window-close` to keep tracking install status.
  • GNOME Terminal: Uses `--wait` flag to wait for the window to close.
  • Xfce4 Terminal: Uses `--disable-server` to avoid shared-server mode.
  • Konsole: Uses `--separate` to run in a separate process.
  • WezTerm: Uses `--always-new-process` to spawn a new process.
  • Headless servers: Not supported — requires a graphical terminal environment.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment