fix(ui): add accelerated scrolling on alternate buffer mode (#23940)

Co-authored-by: jacob314 <jacob314@gmail.com>
This commit is contained in:
Dev Randalpura
2026-04-01 12:23:40 -04:00
committed by GitHub
parent 7d1848d578
commit 066da2a1d1
4 changed files with 246 additions and 3 deletions
@@ -272,6 +272,18 @@ export class TerminalCapabilityManager {
return this.kittyEnabled;
}
isGhosttyTerminal(env: NodeJS.ProcessEnv = process.env): boolean {
const termProgram = env['TERM_PROGRAM']?.toLowerCase();
const term = env['TERM']?.toLowerCase();
const name = this.getTerminalName()?.toLowerCase();
return !!(
name?.includes('ghostty') ||
termProgram?.includes('ghostty') ||
term?.includes('ghostty')
);
}
supportsOsc9Notifications(env: NodeJS.ProcessEnv = process.env): boolean {
if (env['WT_SESSION']) {
return false;