Optimize xterm rendering performance

pull/1490/head
gongdewei 3 years ago
parent 303efc6cad
commit 23180e6d34

@ -92,7 +92,7 @@ function initXterm (cols, rows) {
xterm = new Terminal({
cols: cols,
rows: rows,
screenReaderMode: true,
screenReaderMode: false,
rendererType: 'canvas',
convertEol: true
});
@ -142,7 +142,7 @@ function startConnect (silent) {
ws.onmessage = function (event) {
if (event.type === 'message') {
var data = event.data;
xterm.write(data);
xterm.write(data);
}
};
xterm.open(document.getElementById('terminal'));

Loading…
Cancel
Save