π OpenHands: AI-Driven Development
fix: enable terminal scrollback to view command history (#11883)
Neha Prasad6ec477dae27b
diff --git a/frontend/src/hooks/use-terminal.ts b/frontend/src/hooks/use-terminal.tsindex b5ffb6baf9..d01132a85f 100644--- a/frontend/src/hooks/use-terminal.ts+++ b/frontend/src/hooks/use-terminal.ts@@ -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 sequenceterminal.current.write("\x1b[?25l");+ fitAddon.current?.fit();}}};