Run console.clear() in handleClearScreen when invoked by Ctrl-L. (#356)

Copied from sethtroisi@'s identical improvement to /clear in change #355.
This commit is contained in:
DeWitt Clinton 2025-05-14 22:48:50 -07:00 committed by GitHub
parent 5b4c9e8e43
commit 5c6e601026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ export const App = ({
const handleClearScreen = useCallback(() => { const handleClearScreen = useCallback(() => {
clearItems(); clearItems();
console.clear();
refreshStatic(); refreshStatic();
}, [clearItems, refreshStatic]); }, [clearItems, refreshStatic]);