fix: enable terminal scrollback to view command history (#11883)

This commit is contained in:
Neha Prasad 2025-12-04 15:59:42 +05:30 committed by GitHub
parent d0496fea8c
commit 6ec477dae2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ export const useTerminal = () => {
new Terminal({
fontFamily: "Menlo, Monaco, 'Courier New', monospace",
fontSize: 14,
scrollback: 1000,
scrollback: 10000,
scrollSensitivity: 1,
fastScrollModifier: "alt",
fastScrollSensitivity: 5,
@ -62,6 +62,7 @@ export const useTerminal = () => {
terminal.current.open(ref.current);
// Hide cursor for read-only terminal using ANSI escape sequence
terminal.current.write("\x1b[?25l");
fitAddon.current?.fit();
}
}
};