mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 06:54:15 -07:00
Turns out the node console.clear() clears the buffer. (#12959)
This commit is contained in:
@@ -734,9 +734,16 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|||||||
const handleClearScreen = useCallback(() => {
|
const handleClearScreen = useCallback(() => {
|
||||||
historyManager.clearItems();
|
historyManager.clearItems();
|
||||||
clearConsoleMessagesState();
|
clearConsoleMessagesState();
|
||||||
console.clear();
|
if (!isAlternateBuffer) {
|
||||||
|
console.clear();
|
||||||
|
}
|
||||||
refreshStatic();
|
refreshStatic();
|
||||||
}, [historyManager, clearConsoleMessagesState, refreshStatic]);
|
}, [
|
||||||
|
historyManager,
|
||||||
|
clearConsoleMessagesState,
|
||||||
|
refreshStatic,
|
||||||
|
isAlternateBuffer,
|
||||||
|
]);
|
||||||
|
|
||||||
const { handleInput: vimHandleInput } = useVim(buffer, handleFinalSubmit);
|
const { handleInput: vimHandleInput } = useVim(buffer, handleFinalSubmit);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user