Skip to main content

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 s on a stopped VM โ†’ Confirmation dialog
  • Stop VM: Press x on a running VM โ†’ Confirmation dialog
  • Delete VM: Press d on any VM โ†’ Warning confirmation dialog

Dialog Controls:

  • โ† / โ†’ / Tab: Toggle between Yes/No
  • Enter: Confirm selection
  • Esc: 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 field
  • Shift+Tab: Move to previous field
  • Type to edit current field
  • Backspace: Delete character
  • Enter: Submit form
  • Esc: 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 items
  • Enter: Select highlighted item
  • Type the key letter (e.g., s for 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
  • Enter or Esc: 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โ€‹

KeyAction
1Dashboard
2VM List
3Snapshots
4Profiles
5Blueprints
?Help Screen
Ctrl+RRefresh Data
/Search/Filter
q or EscQuit

VM List Viewโ€‹

KeyAction
โ†‘โ†“ or j/kNavigate VMs
EnterView details
mOpen context menu
cCreate new VM
sStart selected VM
xStop selected VM
dDelete selected VM

Snapshots Viewโ€‹

KeyAction
โ†‘โ†“ or j/kNavigate snapshots
cCreate snapshot
dDelete snapshot
rRestore snapshot

VM Details Viewโ€‹

KeyAction
Backspace or EscReturn to VM list

Interactive Workflowsโ€‹

Creating a VMโ€‹

  1. Press 2 โ†’ Navigate to VM List
  2. Press c โ†’ Open "Create VM" form
  3. Fill in fields:
    • VM Name: web-server
    • Template: ubuntu-22.04
    • Profile: web
    • Disk Size: 40Gi
  4. Press Enter โ†’ Submit
  5. Toast notification: "Creating VM 'web-server'..."
  6. Progress indicator shows creation status
  7. Success notification: "VM 'web-server' created"
  8. Auto-refresh shows new VM in list

Managing a VMโ€‹

  1. Navigate to VM in list (โ†‘โ†“)
  2. Press m โ†’ Open context menu
  3. Select action:
    • s โ†’ Start VM (with confirmation)
    • x โ†’ Stop VM (with confirmation)
    • c โ†’ Create snapshot
    • v โ†’ View details
  4. Confirm action in dialog
  5. Real-time notification of status
  6. VM list auto-updates

Taking a Snapshotโ€‹

  1. Navigate to Snapshots view (3)
  2. Press c โ†’ Open "Create Snapshot" form
  3. VM name auto-filled
  4. Enter snapshot name: backup-2026-02-11
  5. Press Enter โ†’ Submit
  6. Progress bar shows snapshot creation
  7. Success notification
  8. 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โ€‹

  1. Quick Actions: Use single-key shortcuts (s, x, d) instead of menu for speed
  2. Search Everything: Press / to filter large VM lists quickly
  3. Keyboard Only: Entire TUI navigable without mouse
  4. Confirmation Dialogs: Default selection is "No" for safety
  5. Auto-Refresh: Data refreshes every 5 seconds automatically
  6. Stack Notifications: Multiple actions show stacked notifications
  7. Escape Hatch: Esc always 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โ€‹

FeatureBasic ModeInteractive 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!