Learn the essential keyboard shortcuts and navigation patterns for dx terminal interface. Navigate through menu items and execute commands:
Movement
keys
Up/Down or j/k - Move selection up/down
Enter - Execute selected item
Left or Backspace - Go back to parent menu
Mouse wheel - Scroll through menu items
Quick Actions
keys
q or Esc - Exit dx (from root menu)
Ctrl+C or Ctrl+Q - Immediate exit
:q Enter - Vim-style quit

Output View Controls

Control command output and file viewing:
Scrolling
keys
j/k or Up/Down - Scroll line by line
Page Up/Page Down - Scroll by page
g/G - Go to top/bottom
Mouse wheel - Scroll content
View Options
keys
a - Toggle auto-scroll to bottom
d - Toggle dim/bright baseline text
m - Toggle Markdown rendering
w - Toggle text wrapping
s - Toggle selection mode (release mouse to terminal)
Process Control
keys
Ctrl+C - Kill running process (with confirmation)
b or Backspace - Return to menu
q or Esc - Return to menu or exit

File Navigation

When viewing Markdown files with footnotes:
1-9 - Navigate to footnote links
Mouse click - Click on footnote links
Enter - Follow link to referenced file

Global Controls

Available throughout dx interface:
System
keys
O or F10 - Toggle CPU overlay
Ctrl+R - Refresh/reload current screen

Quick Start

  1. Launch dx: Run dx in any directory
  2. Navigate menu: Use j/k or arrow keys to select items
  3. Execute command: Press Enter on selected item
  4. View output: Watch command execution in real-time
  5. Return to menu: Press Esc or q when done
  6. Exit dx: Press q from main menu

Pro Tips

Mouse support: dx supports mouse scrolling and clicking throughout the interface.
Vim-style: Most navigation follows Vim conventions - j/k for movement, :q to quit.
Process safety: dx always confirms before killing running processes with Ctrl+C.
Auto-scroll: Output automatically scrolls to follow new content unless you manually scroll up.

Command Line Usage

Beyond the TUI, dx supports direct command execution:
dx                    # Open TUI interface
dx <alias>            # Run aliased command directly  
dx <file>             # View file content
dx aliases            # List all available aliases
dx --record <alias>   # Record command execution
dx --live             # Start live streaming session