Command blocks
See each command’s exit code, jump between commands, and copy a single command’s output.
command blocksexit codeexit statusjump to promptcopy outputshell integrationwarp-likererun
Command blocks
Kubexer Terminal tracks each command you run as a block: where its output starts and ends, how it exited and how long it took. You can see failures at a glance, jump between commands, and copy one command's output without selecting it by hand.
What you see
- A thin bar in the left margin beside every command's output. It's coloured for success, failure (a non-zero exit code) or unknown.
- Red ticks on the scrollbar for failed commands, so you can find them in long scrollback.
- Hover the bar to see the command, its exit code and its duration, for example
make test · exit 2 · 41.0s.
Act on a command
Click a block's bar, or right-click inside its output:
| Item | What it does |
|---|---|
| Copy command | Copies the command line. |
| Copy output | Copies only that command's output. |
| Run again | Clears whatever is typed at the prompt and runs the command again. Available only at an idle prompt. |
| Ask Kubexy about this output | Opens Kubexy with the command, exit code and the end of its output attached. |
| Explain this error | Failed commands only. Shows what went wrong and suggested fixes beside the command. See Explain a failed command. Pro. |
Jump between commands
⌘↑ / ⌘↓ on macOS, Ctrl+↑ / Ctrl+↓ on Windows and Linux, scroll to the previous or next prompt.
Requirements
Command blocks come from Kubexer's shell integration, which marks each prompt and each command's exit status. It works in bash and zsh, locally and over SSH. Other shells, and full-screen programs such as vim or htop, show output without blocks.
Good to know
- Blocks are rebuilt from the output itself, so they survive resizing and reflow. Lines trimmed from the scrollback take their blocks with them.
- The same markers feed the command list and the red failure ticks in recordings.
- If a block shows exit unknown, the shell didn't report a status, for example because the session ended mid-command.