mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-09 21:00:56 -07:00
Support ink scrolling final pr (#12567)
This commit is contained in:
12
packages/cli/src/ui/hooks/useAlternateBuffer.ts
Normal file
12
packages/cli/src/ui/hooks/useAlternateBuffer.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { useSettings } from '../contexts/SettingsContext.js';
|
||||
|
||||
export const useAlternateBuffer = (): boolean => {
|
||||
const settings = useSettings();
|
||||
return settings.merged.ui?.useAlternateBuffer ?? false;
|
||||
};
|
||||
@@ -146,6 +146,10 @@ vi.mock('./slashCommandProcessor.js', () => ({
|
||||
handleSlashCommand: vi.fn().mockReturnValue(false),
|
||||
}));
|
||||
|
||||
vi.mock('./useAlternateBuffer.js', () => ({
|
||||
useAlternateBuffer: vi.fn(() => false),
|
||||
}));
|
||||
|
||||
// --- END MOCKS ---
|
||||
|
||||
// --- Tests for useGeminiStream Hook ---
|
||||
|
||||
Reference in New Issue
Block a user