revert(tui): temporarily undo Zellij Kitty-query bypass
This reverts 3929e0c181.
The Zellij-specific Kitty-query skip regresses Shift+Enter newline handling in Zellij. Restoring the previous behavior for now while we work on a safer fix that preserves both Alt and modified Enter handling.\n\nContext: https://github.com/badlogic/pi-mono/issues/3259
This commit is contained in:
@@ -184,17 +184,6 @@ export class ProcessTerminal implements Terminal {
|
||||
private queryAndEnableKittyProtocol(): void {
|
||||
this.setupStdinBuffer();
|
||||
process.stdin.on("data", this.stdinDataHandler!);
|
||||
|
||||
// Zellij forwards the Kitty query to the outer terminal, which can make
|
||||
// Pi enable its Kitty parser even though Zellij still sends Alt as
|
||||
// legacy ESC-prefixed sequences. Skip the Kitty query there and use
|
||||
// modifyOtherKeys directly instead.
|
||||
if (process.env.ZELLIJ) {
|
||||
process.stdout.write("\x1b[>4;2m");
|
||||
this._modifyOtherKeysActive = true;
|
||||
return;
|
||||
}
|
||||
|
||||
process.stdout.write("\x1b[?u");
|
||||
setTimeout(() => {
|
||||
if (!this._kittyProtocolActive && !this._modifyOtherKeysActive) {
|
||||
|
||||
Reference in New Issue
Block a user