mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix: enable terminal scrollback to view command history (#11883)
This commit is contained in:
parent
d0496fea8c
commit
6ec477dae2
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user