0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCode上のターミナルでCtrl+C等が動かないとき【Kittyプロトコル】

0
Posted at

起こったこと

VSCode Insiders & WSL2を使っているのですが、いつの間にか統合ターミナル上で npm run dev 中のキー入力

  • q + enter
  • ctrl + c

などが効かなくなっていることに気付きました。^[[99;5u みたいな変な文字が印字されるだけです。

npmだけではありません。どうやら他のコマンドも ctrl + c を受け付けないようです。

❯ ping hoge
^[[99;5u

解決策

VSCodeの設定

"terminal.integrated.enableKittyKeyboardProtocol": false

で治りました。

「Kitty Keyboard Protocol」は

  • 高精度キー入力検出
  • Ctrl+Shift+Alt+キーの完全区別

を可能にする次世代方式とのことですが、Node / npm / vite / bashなど多くのCLIツールがまだ対応できていないようです。

分からないこと

  • この現象いつから?
  • VSCode InsidersじゃなくてStable版は?
  • Kittyプロトコルって何者?
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?