# pan input

Capture text input from the user via a TUI popup.

## Usage

```bash
pan input [OPTIONS]
```

## Options

- `-p, --prompt <TEXT>` — Prompt message displayed as title (default: "Input")
- `-W, --width <WIDTH>` — Popup width (default: auto)
- `-v, --value <TEXT>` — Initial value to pre-fill
- `--guide` — Display this guide

## Keybindings

- `Enter` — Confirm input
- `Esc` / `Ctrl+C` — Cancel
- `Backspace` — Delete character before cursor
- `Left/Right` — Move cursor
- `Home/End` — Jump to start/end

## Exit Codes

- `0` — Input confirmed, prints the text
- `1` — Cancelled or error

## Capturing output

See [PANDORA_GUIDE.md](./PANDORA_GUIDE.md#capturing-output) for all capture patterns.