← back to Terminal Status

verification/install/after/.claude/skills/colordots/paint-lib.sh

13 lines

#!/usr/bin/env bash
# Compatibility API. Semantic state and terminal writes share one engine.
TABDOTS_DIR="$HOME/.claude/tab-dots"
tabdots_is_subagent() { [ -n "${CLAUDE_CODE_CHILD_SESSION:-}" ]; }
tabdots_resolve_tty() {
  python3 "$HOME/Projects/terminal-status/terminal_status.py" current |
    python3 -c 'import json,sys; print("/dev/"+json.load(sys.stdin)["tty"])'
}
tabdots_stop_pulse() { :; }  # Current painters never create pulse processes.
tabdots_paint() {
  python3 "$HOME/Projects/terminal-status/terminal_status.py" paint-legacy "$@"
}