终端设置
Pi 使用 Kitty 键盘协议实现可靠的修饰键检测。
Kitty、iTerm2
开箱即用,无需额外配置。
Ghostty
在 ~/.config/ghostty/config 中添加:
WezTerm
创建 ~/.wezterm.lua:
VS Code 集成终端
在 keybindings.json 中添加:
文件位置:
- macOS:
~/Library/Application Support/Code/User/keybindings.json - Linux:
~/.config/Code/User/keybindings.json - Windows:
%APPDATA%\\Code\\User\\keybindings.json
Windows Terminal
在 settings.json 中添加(快捷键 Ctrl+Shift+,):
IntelliJ IDEA
内置终端对转义序列的支持有限,建议使用独立的终端模拟器。
设置 PI_HARDWARE_CURSOR=1 可开启硬件光标可见性。