Skip to content
Discussion options

You must be logged in to vote

#172 (comment) or use virtio_console with resize event:

emulator.bus.send("virtio-consoleX-resize", [cols, rows])
small virtio console example with xterm-fit-addon (inspired by alpine.sh)
<!doctype html>
<script src="libv86.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xterm@5.2.1/lib/xterm.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.8.0/lib/xterm-addon-fit.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@5.2.1/css/xterm.min.css">

<style>
    /* for a better look */

    body {
        padding: 0;
        margin: 0;
        background-color: black;
    }

    #terminal {
        width: 100vw;
        height: 100

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arcanis
Comment options

Answer selected by arcanis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants