tmux-terminal
/install imbeasting-tmux-terminal
tmux-terminal
Overview
Use tmux to drive interactive terminal sessions, including TUI workflows like ralph-tui. tmux lets you send keystrokes, capture screen output, and keep processes running between steps.
When to Use
- Testing
ralph-tuior any interactive CLI prompts - Managing long-running processes (web server, loops, watch mode)
- Capturing live terminal output for QA reports
- Interacting with applications that redraw the screen
Prerequisites
tmuxinstalled (pre-installed on macOS)
Verify:
tmux -V
Core Commands
Create a detached session:
tmux new-session -d -s \x3Cname>
Send commands (append Enter to execute):
tmux send-keys -t \x3Cname> "\x3Ccommand>" Enter
Capture screen output:
tmux capture-pane -t \x3Cname> -p
Kill session when done:
tmux kill-session -t \x3Cname>
Special Keys
Use send-keys with key names:
EnterC-c(Ctrl-C)C-d(Ctrl-D)TabEscapeUp,Down,Left,Right
Examples:
tmux send-keys -t \x3Cname> Up
tmux send-keys -t \x3Cname> C-c
TUI Interaction Patterns
Start ralph-tui
tmux new-session -d -s ralph-tui
tmux send-keys -t ralph-tui "cargo run -p ralph-tui" Enter
Navigate in TUI
tmux send-keys -t ralph-tui Down
tmux send-keys -t ralph-tui Enter
Capture and parse the screen
tmux capture-pane -t ralph-tui -p -S -200
Use -S -200 to capture the last 200 lines when the screen is noisy.
Long-Running Process Management
- Start servers or loops in a tmux session to keep them alive.
- Use
capture-paneto confirm health (look for "listening" or "ready" text). - Stop cleanly with
C-cthenkill-session.
Example:
tmux new-session -d -s ralph-web
tmux send-keys -t ralph-web "cargo run -p ralph-cli -- web" Enter
tmux capture-pane -t ralph-web -p | rg -n "listening|ready"
tmux send-keys -t ralph-web C-c
tmux kill-session -t ralph-web
Notes
- Keep session names short and unique.
- Always clean up sessions to avoid leaking background processes.
- If output looks empty, wait briefly and capture again.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install imbeasting-tmux-terminal - After installation, invoke the skill by name or use
/imbeasting-tmux-terminal - Provide required inputs per the skill's parameter spec and get structured output
What is tmux-terminal?
Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows. It is an AI Agent Skill for Claude Code / OpenClaw, with 396 downloads so far.
How do I install tmux-terminal?
Run "/install imbeasting-tmux-terminal" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is tmux-terminal free?
Yes, tmux-terminal is completely free (open-source). You can download, install and use it at no cost.
Which platforms does tmux-terminal support?
tmux-terminal is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created tmux-terminal?
It is built and maintained by ImBeasting (@imbeasting); the current version is v1.0.0.