Change the default scrolling behaviour of the web terminal

Use 1000 lines for the scroll buffer on the web/browser terminal.
pull/25/head v2.1.0
Vasile Popescu 4 years ago
parent 4e3dae80e2
commit fcefcdfb02

File diff suppressed because one or more lines are too long

@ -15,10 +15,11 @@ class TTYReceiver {
console.log("Opening WS connection to ", wsAddress)
const connection = new WebSocket(wsAddress);
// TODO: expose some of these options in the UI
this.xterminal = new Terminal({
cursorBlink: true,
macOptionIsMeta: true,
scrollback: 0,
scrollback: 1000,
fontSize: 12,
letterSpacing: 0,
});
@ -35,7 +36,6 @@ class TTYReceiver {
setTimeout(() => {
this.xterminal.write('Session closed');
}, 1000)
}
this.xterminal.focus();

Loading…
Cancel
Save