mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-16 04:22:36 +00:00
fix(tui): clear Apple Terminal resize artifacts
Use a deeper alt-screen clear for Apple Terminal resize repaints so host reflow artifacts do not survive the recovery frame.
This commit is contained in:
parent
e527240b27
commit
279b656adc
3 changed files with 40 additions and 9 deletions
|
|
@ -168,6 +168,10 @@ export function isXtermJs(): boolean {
|
|||
return xtversionName?.startsWith('xterm.js') ?? false
|
||||
}
|
||||
|
||||
export function needsAltScreenResizeScrollbackClear(env: NodeJS.ProcessEnv = process.env): boolean {
|
||||
return (env.TERM_PROGRAM ?? '').trim() === 'Apple_Terminal'
|
||||
}
|
||||
|
||||
// Terminals known to correctly implement the Kitty keyboard protocol
|
||||
// (CSI >1u) and/or xterm modifyOtherKeys (CSI >4;2m) for ctrl+shift+<letter>
|
||||
// disambiguation. We previously enabled unconditionally (#23350), assuming
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue