Don't require carriage returns.
This commit is contained in:
parent
d7d6f0503b
commit
6e29499b1d
@ -16,7 +16,6 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="xterm.css" />
|
<link rel="stylesheet" href="xterm.css" />
|
||||||
<script src="xterm.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body style="background: black; height: 100%">
|
<body style="background: black; height: 100%">
|
||||||
<div style="background: black; color: white; display: flex; flex-direction: column; margin: 0px; height: 100%; width: 100%">
|
<div style="background: black; color: white; display: flex; flex-direction: column; margin: 0px; height: 100%; width: 100%">
|
||||||
|
@ -44,7 +44,8 @@ function connectTerm() {
|
|||||||
});
|
});
|
||||||
webSocket.addEventListener('message', (msg) => {
|
webSocket.addEventListener('message', (msg) => {
|
||||||
fit.fit();
|
fit.fit();
|
||||||
term.write(msg.data);
|
term.write(msg.data.replaceAll("\r", "")
|
||||||
|
.replaceAll("\n", "\r\n"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user