What is the TUI?
The Rexec TUI is an interactive terminal-based dashboard built with Charm Bubble Tea. It provides a rich, colorful interface for managing terminals, snippets, and infrastructure without leaving your terminal.
Features
Dashboard View
Real-time stats, terminal status, and quick actions
Terminal List
Browse and filter all your terminals
Snippet Browser
Access your snippets and marketplace
Quick Connect
Connect to terminals with a single keystroke
Installation
The TUI is included in the CLI installation:Build from Source
Build for All Platforms
downloads/:
rexec-tui-linux-amd64rexec-tui-linux-arm64rexec-tui-darwin-amd64rexec-tui-darwin-arm64
Launching the TUI
Multiple commands launch the TUI:The TUI requires authentication. Run
rexec login first.Dashboard View
The main dashboard shows:Views
Dashboard (Main View)
Statistics Cards:- Total terminals
- Running count (green)
- Stopped count (yellow)
- Available snippets (purple)
- Shows up to 5 most recent terminals
- Green ● = running
- Yellow ○ = stopped
- Quick connect with number keys (1-9)
Terminals View
Full list of all terminals with filtering:- Searchable with
/key - MFA-locked terminals show 🔒 icon
- Color-coded status indicators
- Arrow keys or vim keys (j/k) for navigation
Snippets View
Browse your saved snippets:MFA Prompt
For MFA-protected terminals:- Real-time input display
- Auto-validation on 6 digits
- Error messages for invalid codes
- Backspace to correct
Keyboard Shortcuts
Global Keys
| Key | Action |
|---|---|
q | Quit TUI (from dashboard) |
Ctrl+C | Force quit |
Esc | Back to dashboard |
r | Refresh data |
Dashboard Keys
| Key | Action |
|---|---|
1-9 | Quick connect to terminal 1-9 |
t | Open terminals view |
s | Open snippets view |
c | Create new terminal |
r | Refresh data |
q | Quit |
List Navigation Keys
| Key | Action |
|---|---|
↑ / k | Move up |
↓ / j | Move down |
Enter | Select item |
/ | Filter/search |
Esc | Clear filter or go back |
q | Quit |
MFA Input Keys
| Key | Action |
|---|---|
0-9 | Enter digit |
Backspace | Delete digit |
Enter | Verify code |
Esc | Cancel |
Connecting to Terminals
When you select a terminal:- TUI exits to native terminal
- CLI connects via WebSocket
- Full interactive shell session
- Disconnect returns to shell (not TUI)
Color Scheme
The TUI uses a modern, dark color palette:| Element | Color | Hex |
|---|---|---|
| Primary | Cyan | #00D4FF |
| Secondary | Purple | #7C3AED |
| Success | Green | #10B981 |
| Warning | Yellow | #F59E0B |
| Error | Red | #EF4444 |
| Dim | Gray | #6B7280 |
| Background | Dark Blue | #0F172A |
| Card BG | Slate | #1E293B |
Automatic Refresh
The TUI automatically refreshes:- On startup
- When pressing
r - After creating terminals
- After MFA verification
Status Indicators
Terminal Status
| Icon | Color | Status |
|---|---|---|
| ● | Green | Running |
| ○ | Yellow | Stopped |
| ○ | Red | Error |
| ○ | Gray | Exited |
Special Indicators
| Icon | Meaning |
|---|---|
| 🔒 | MFA-protected terminal |
Error Handling
The TUI gracefully handles errors:- Not logged in: Exit and run
rexec login - Network error: Check internet connection
- Invalid MFA: Re-enter code
Configuration
The TUI uses the same config as the CLI:Performance
The TUI is lightweight and fast:- Startup time: < 100ms
- Memory usage: ~10-20MB
- Network: Only API calls, no polling
- Terminal rendering: 60 FPS capable
Accessibility
Screen Readers
Screen Readers
The TUI uses standard terminal output, but may not be fully accessible with screen readers. For better accessibility, use the CLI commands:
Color Blindness
Color Blindness
Status indicators use both color and symbols:
- Running: ● (filled circle) + green
- Stopped: ○ (empty circle) + yellow
Keyboard-Only Navigation
Keyboard-Only Navigation
Troubleshooting
TUI Doesn’t Launch
Terminal Too Small
If your terminal is too small, the TUI may display incorrectly. Minimum size: 80 columns × 24 rowsColors Not Showing
TUI Binary Not Found
Ifrexec -i shows:
~/.rexec/rexec-tui/usr/local/bin/rexec-tui- Set
REXEC_TUI_PATHenvironment variable
Advanced Usage
Custom TUI Path
Use a custom TUI binary:ASCII Fallback
If the Bubble Tea TUI isn’t available, the CLI shows a simple ASCII dashboard:Next Steps
CLI Commands
Learn CLI commands for automation
Authentication
Manage login and credentials