mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-22 20:04:19 +01:00
Upgrade to xterm.js 2.6.0
This commit is contained in:
@@ -48,14 +48,13 @@
|
|||||||
});
|
});
|
||||||
window.addEventListener('beforeunload', unloadCallback);
|
window.addEventListener('beforeunload', unloadCallback);
|
||||||
term.fit();
|
term.fit();
|
||||||
term.focus();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
while (terminalContainer.firstChild) {
|
while (terminalContainer.firstChild) {
|
||||||
terminalContainer.removeChild(terminalContainer.firstChild);
|
terminalContainer.removeChild(terminalContainer.firstChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
term.open(terminalContainer);
|
term.open(terminalContainer, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
ws.onmessage = function(event) {
|
ws.onmessage = function(event) {
|
||||||
|
|||||||
@@ -15,6 +15,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-inline-source": "^3.0.0",
|
"gulp-inline-source": "^3.0.0",
|
||||||
"xterm": "^2.5.0"
|
"xterm": "^2.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1413,9 +1413,9 @@ wrappy@1:
|
|||||||
version "4.0.1"
|
version "4.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
|
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
|
||||||
|
|
||||||
xterm@^2.5.0:
|
xterm@^2.6.0:
|
||||||
version "2.5.0"
|
version "2.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/xterm/-/xterm-2.5.0.tgz#5a6239ba08a40640127e80b3d8180df34a06b499"
|
resolved "https://registry.yarnpkg.com/xterm/-/xterm-2.6.0.tgz#d8daa6d9c3ebee0c850b156cd2f92fbfc8fdfb3e"
|
||||||
|
|
||||||
yargs@~3.10.0:
|
yargs@~3.10.0:
|
||||||
version "3.10.0"
|
version "3.10.0"
|
||||||
|
|||||||
6
src/index.html
vendored
6
src/index.html
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user