mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-11 18:40:57 -07:00
fix(cli): fix enabling kitty codes on Windows Terminal (#21136)
This commit is contained in:
committed by
GitHub
parent
ad8528833e
commit
b5041f5be4
@@ -138,9 +138,6 @@ export class TerminalCapabilityManager {
|
||||
process.stdin.setRawMode(false);
|
||||
}
|
||||
this.detectionComplete = true;
|
||||
|
||||
this.enableSupportedModes();
|
||||
|
||||
resolve();
|
||||
};
|
||||
|
||||
@@ -246,9 +243,11 @@ export class TerminalCapabilityManager {
|
||||
enableSupportedModes() {
|
||||
try {
|
||||
if (this.kittySupported) {
|
||||
debugLogger.log('Enabling Kitty keyboard protocol');
|
||||
enableKittyKeyboardProtocol();
|
||||
this.kittyEnabled = true;
|
||||
} else if (this.modifyOtherKeysSupported) {
|
||||
debugLogger.log('Enabling modifyOtherKeys');
|
||||
enableModifyOtherKeys();
|
||||
}
|
||||
// Always enable bracketed paste since it'll be ignored if unsupported.
|
||||
|
||||
Reference in New Issue
Block a user