mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
fix(ui): add accelerated scrolling on alternate buffer mode (#23940)
Co-authored-by: jacob314 <jacob314@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user