Zorvia Interactive TUI Guide
Canonical interactive TUI documentation (other TUI markdown files in this folder are short pointers here).
Overviewโ
Zorvia provides a fully interactive Terminal User Interface (TUI) with dialogs, forms, context menus, and real-time notifications for managing KubeVirt VMs.
Launching the TUIโ
Basic Modeโ
# Launch basic TUI
zorvia tui
# With specific namespace
zorvia tui --namespace production
Enhanced Interactive Modeโ
# Launch with full interactive features
zorvia tui --interactive
# With custom theme
zorvia tui --interactive --theme dark
Interactive Featuresโ
๐ฏ Dialogs & Confirmationsโ
The interactive TUI shows confirmation dialogs for destructive operations:
- Start VM: Press
son a stopped VM โ Confirmation dialog - Stop VM: Press
xon a running VM โ Confirmation dialog - Delete VM: Press
don any VM โ Warning confirmation dialog
Dialog Controls:
โ/โ/Tab: Toggle between Yes/NoEnter: Confirm selectionEsc: Cancel
๐ Input Formsโ
Create resources with interactive forms:
Create VM (Press c in VM List):
โโโโโโโ Create Virtual Machine โโโโโโโ
โ VM Name: โ
โ my-vmโ โ
โ โ
โ Template: โ
โ ubuntu-22.04 โ
โ โ
โ Profile: โ
โ dev โ
โ โ
โ Disk Size: โ
โ 20Gi โ
โ โ
โ [ Submit ] [ Cancel ] โ
โ โ
โ Tab: Next field | Enter: Submit โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Form Controls:
Tab: Move to next fieldShift+Tab: Move to previous field- Type to edit current field
Backspace: Delete characterEnter: Submit formEsc: Cancel
Create Snapshot (Press c in Snapshots):
- Auto-fills current VM name
- Prompts for snapshot name
- Creates snapshot on submit
๐ Context Menusโ
Right-click style menus with keyboard navigation (Press m in VM List):
โโโโโโโ VM: my-ubuntu โโโโโโโ
โ โถ Start (s) โ
โ Delete (d) โ
โ Create Snapshot (c) โ
โ View Details (v) โ
โ Edit (e) [disabled] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Menu Controls:
โ/โ/j/k: Navigate itemsEnter: Select highlighted item- Type the key letter (e.g.,
sfor Start) Esc: Close menu
Dynamic Menus:
- Running VMs show: Stop, Restart, Create Snapshot
- Stopped VMs show: Start, Delete
- Disabled items shown in gray
๐ Toast Notificationsโ
Non-intrusive notifications appear in the top-right corner:
Types:
- Info (Blue โน): "Refreshing data..."
- Success (Green โ): "VM 'my-vm' started successfully"
- Warning (Yellow โ ): "VM may take a few minutes to start"
- Error (Red โ): "Failed to connect to cluster"
Features:
- Auto-dismiss after 3 seconds
- Stack multiple notifications
- Don't block user interaction
๐ Search & Filterโ
Press / to activate search bar:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Search: ubuntuโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Search Controls:
/: Open search bar- Type to filter
EnterorEsc: Close search- Filters VM list in real-time
โณ Progress Indicatorsโ
Long-running operations show progress:
โโโโโโโโ Creating VM โโโโโโโโ
โ โ
โ Creating VM 'web-01'... โ
โ โ
โ โโโโโโโโโโโโโโโโโ 45% โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Types:
- Determinate: Shows percentage (VM creation, snapshot)
- Indeterminate: Spinner for unknown duration (waiting for status)
View Navigationโ
Global Keybindingsโ
| Key | Action |
|---|---|
1 | Dashboard |
2 | VM List |
3 | Snapshots |
4 | Profiles |
5 | Blueprints |
? | Help Screen |
Ctrl+R | Refresh Data |
/ | Search/Filter |
q or Esc | Quit |
VM List Viewโ
| Key | Action |
|---|---|
โโ or j/k | Navigate VMs |
Enter | View details |
m | Open context menu |
c | Create new VM |
s | Start selected VM |
x | Stop selected VM |
d | Delete selected VM |
Snapshots Viewโ
| Key | Action |
|---|---|
โโ or j/k | Navigate snapshots |
c | Create snapshot |
d | Delete snapshot |
r | Restore snapshot |
VM Details Viewโ
| Key | Action |
|---|---|
Backspace or Esc | Return to VM list |
Interactive Workflowsโ
Creating a VMโ
- Press
2โ Navigate to VM List - Press
cโ Open "Create VM" form - Fill in fields:
- VM Name:
web-server - Template:
ubuntu-22.04 - Profile:
web - Disk Size:
40Gi
- VM Name:
- Press
Enterโ Submit - Toast notification: "Creating VM 'web-server'..."
- Progress indicator shows creation status
- Success notification: "VM 'web-server' created"
- Auto-refresh shows new VM in list
Managing a VMโ
- Navigate to VM in list (โโ)
- Press
mโ Open context menu - Select action:
sโ Start VM (with confirmation)xโ Stop VM (with confirmation)cโ Create snapshotvโ View details
- Confirm action in dialog
- Real-time notification of status
- VM list auto-updates
Taking a Snapshotโ
- Navigate to Snapshots view (
3) - Press
cโ Open "Create Snapshot" form - VM name auto-filled
- Enter snapshot name:
backup-2026-02-11 - Press
Enterโ Submit - Progress bar shows snapshot creation
- Success notification
- Snapshot appears in list
Customizationโ
Themesโ
# Dark theme (default)
zorvia tui --interactive --theme dark
# Light theme
zorvia tui --interactive --theme light
Configurationโ
Edit ~/.config/zorvia/tui.toml:
[theme]
name = "dark"
[ui]
auto_refresh_interval = 5
show_timestamps = true
[behavior]
confirm_stop = true
confirm_delete = true
Advanced Featuresโ
Multi-Select Operations (Coming Soon)โ
- Select multiple VMs with
Space - Batch operations with confirmation
- Progress for multiple VMs
Custom Keybindings (Configurable)โ
[keybindings]
quit = "q"
refresh = "r"
search = "/"
create = "c"
Mouse Support (Optional)โ
- Click to select items
- Click buttons in dialogs
- Scroll with mouse wheel
Tips & Tricksโ
- Quick Actions: Use single-key shortcuts (
s,x,d) instead of menu for speed - Search Everything: Press
/to filter large VM lists quickly - Keyboard Only: Entire TUI navigable without mouse
- Confirmation Dialogs: Default selection is "No" for safety
- Auto-Refresh: Data refreshes every 5 seconds automatically
- Stack Notifications: Multiple actions show stacked notifications
- Escape Hatch:
Escalways closes dialogs/menus/search
Troubleshootingโ
Dialog not appearing?
- Ensure terminal is large enough (minimum 80x24)
- Try maximizing terminal window
Notifications disappearing too fast?
- Edit config:
notification_duration = 5(seconds)
Colors look wrong?
- Check terminal supports 256 colors
- Try different theme:
--theme light
Keyboard shortcuts not working?
- Check if terminal emulator intercepts keys
- Some keys may conflict with terminal shortcuts
Comparison: Basic vs Interactive Modeโ
| Feature | Basic Mode | Interactive Mode |
|---|---|---|
| View navigation | โ | โ |
| List navigation | โ | โ |
| Confirmation dialogs | โ | โ |
| Input forms | โ | โ |
| Context menus | โ | โ |
| Toast notifications | โ | โ |
| Progress indicators | โ | โ |
| Search/filter | โ | โ |
| Real-time updates | โ | โ |
Examplesโ
Complete Workflow: Deploy a Web Applicationโ
# Launch interactive TUI
zorvia tui --interactive
# Create database VM
1. Press 2 (VM List)
2. Press c (Create)
3. Fill: name=db, template=postgres, profile=database
4. Submit
# Create web server VMs
5. Press c (Create)
6. Fill: name=web-01, template=ubuntu-22.04, profile=web
7. Submit
8. Repeat for web-02, web-03
# Verify all running
9. See all VMs in list with green "Running" status
# Take snapshots before deployment
10. Press 3 (Snapshots)
11. For each VM, press c, name snapshot "pre-deploy"
12. Notifications confirm snapshots created
# Monitor in dashboard
13. Press 1 (Dashboard)
14. View: 4 Running, 0 Stopped
Keyboard Shortcuts Reference Cardโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Zorvia TUI Shortcuts โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ NAVIGATION โ
โ 1-5 Switch views โ
โ โโ / jk Navigate lists โ
โ Enter Select / Details โ
โ Backspace Go back โ
โ โ
โ ACTIONS โ
โ c Create new โ
โ s Start / Stop โ
โ d Delete โ
โ m Context menu โ
โ โ
โ GLOBAL โ
โ / Search โ
โ Ctrl+R Refresh โ
โ ? Help โ
โ q / Esc Quit / Cancel โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Save this card for quick reference!