This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| terminal [2025/03/13 17:14] – Yuki | terminal [2025/03/28 13:00] (current) – Yuki | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| { | { | ||
| display: none; | display: none; | ||
| + | } | ||
| + | .xterm .xterm-viewport | ||
| + | { | ||
| + | overflow-y: auto; | ||
| } | } | ||
| </ | </ | ||
| Line 15: | Line 19: | ||
| <script src=" | <script src=" | ||
| < | < | ||
| - | var term = new Terminal({" | + | var term = new Terminal({" |
| term.open(document.getElementById(' | term.open(document.getElementById(' | ||
| var ws = new WebSocket("/ | var ws = new WebSocket("/ | ||
| ws.onerror = () => term.write(" | ws.onerror = () => term.write(" | ||
| - | var attachAddon = new AttachAddon(ws); | + | var attachAddon = new AttachAddon.AttachAddon(ws); |
| term.loadAddon(attachAddon); | term.loadAddon(attachAddon); | ||
| </ | </ | ||
| </ | </ | ||