Implement proper resizing with terminado.

This commit is contained in:
Fabian Freyer
2019-01-03 18:15:07 +01:00
parent b965cc8763
commit abb0d810de
5 changed files with 659 additions and 379 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ SPDX-License-Identifier: BSD-3-Clause
<body>
<div id="terminal"></div>
<script>
Terminal.applyAddon(attach);
Terminal.applyAddon(terminado);
Terminal.applyAddon(fit);
Terminal.applyAddon(search);
@@ -35,7 +35,7 @@ SPDX-License-Identifier: BSD-3-Clause
var sock = new WebSocket(socketURL);
sock.addEventListener('open', function() {
term.attach(sock);
term.terminadoAttach(sock);
term.fit();
});