Add PI_NO_HARDWARE_CURSOR env var for terminals with limited escape sequence support

Fixes cursor visibility issues in JetBrains IDE terminals (IntelliJ, PyCharm) where
the hardware cursor either blinks or becomes invisible depending on settings.

Fixes #771
This commit is contained in:
Mario Zechner 2026-01-16 12:51:09 +01:00
parent 3a475fe165
commit 4dbf094b65
3 changed files with 12 additions and 0 deletions

View file

@ -151,6 +151,8 @@ return config
**Windows Terminal:** Does not support the Kitty keyboard protocol. Shift+Enter cannot be distinguished from Enter. Use Ctrl+Enter for multi-line input instead. All other keybindings work correctly.
**IntelliJ IDEA (Integrated Terminal):** The built-in terminal has limited escape sequence support. If you experience cursor visibility issues, set `PI_NO_HARDWARE_CURSOR=1` before running pi. Note that Shift+Enter cannot be distinguished from Enter in IntelliJ's terminal. Consider using a dedicated terminal emulator for the best experience.
### API Keys & OAuth
**Option 1: Auth file** (recommended)