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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install imbeasting-tmux-terminal - 安装完成后,直接呼叫该 Skill 的名称或使用
/imbeasting-tmux-terminal触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
tmux-terminal 是什么?
Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 396 次。
如何安装 tmux-terminal?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install imbeasting-tmux-terminal」即可一键安装,无需额外配置。
tmux-terminal 是免费的吗?
是的,tmux-terminal 完全免费(开源免费),可自由下载、安装和使用。
tmux-terminal 支持哪些平台?
tmux-terminal 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 tmux-terminal?
由 ImBeasting(@imbeasting)开发并维护,当前版本 v1.0.0。