mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-13 02:37:02 +00:00
refactor: extract spawn abort handling into shared utility
This commit is contained in:
@@ -2,6 +2,8 @@ export function restoreTerminalState(): void {
|
||||
if (process.stdout.isTTY) {
|
||||
// Disable kitty keyboard protocol / CSI u key release reporting if enabled.
|
||||
process.stdout.write('\x1b[>4;0m');
|
||||
// Disable focus reporting to avoid stray ^[[I on mode switches.
|
||||
process.stdout.write('\x1b[?1004l');
|
||||
process.stdout.write('\x1b[?2004l');
|
||||
}
|
||||
if (process.stdin.isTTY) {
|
||||
|
||||
Reference in New Issue
Block a user