Apps

Shell

# Shell — Deft Interactive REPL A read-eval-print loop shell with command history, tab completion, and expression evaluation. History is persisted to `.deft/local/history/tui.txt`. ## Key Bindings ### Input Mode | Key | Action | |-----|--------| | `Enter` | Evaluate input expression | | `Tab` | Show tab completions | | `Backspace` | Delete character before cursor | | `Alt+Backspace` | Delete word before cursor | | `Delete` | Delete character after cursor | | `Up` | Previous command in history | | `Down` | Next command in history | | `Left` | Move cursor left | | `Right` | Move cursor right | | `Ctrl+Left` | Move cursor to previous word boundary | | `Ctrl+Right` | Move cursor to next word boundary | | `Home` | Move cursor to start of line | | `End` | Move cursor to end of line | ### Clipboard & Editing | Key | Action | |-----|--------| | `Ctrl+V` | Paste from clipboard | | `Ctrl+C` | Copy selection to clipboard | | `Ctrl+K` | Kill line (delete from cursor to end) | | `Ctrl+L` | Clear output | | `Page Up` / `Page Down` | Scroll output | ### Completion Overlay (visible) | Key | Action | |-----|--------| | `Up` / `Down` | Navigate completion items | | `Left` / `Right` | Navigate completion columns | | `Enter` | Accept selected completion | | `Escape` | Hide completions | | `Tab` | Cycle through completion tiers (defs / stdlib / modules) |