pi-focus-caret
v1.0.0
Published
Pi extension: terminal caret visibility management — hides the caret while typing slash commands and restores it on terminal focus changes
Maintainers
Readme
pi-focus-caret
A pi-coding-agent extension that manages the terminal caret (cursor) visibility in the pi TUI.
Features
- Hides the caret while typing commands. When the input starts with
/, the caret is hidden so the terminal does not render a second cursor in the command palette. - Focus-aware. Listens to terminal focus events (
\x1b[O/\x1b[I): the caret is hidden when the terminal loses focus and restored (green) on focus regain. - Deduplicated writes. A 20 ms poller only emits escape sequences when the caret state actually changes, and the original cursor color is restored on session shutdown.
Installation
pi install npm:pi-focus-caretUsage
Install and forget — the extension activates on session start.
