bricks/examples/xterminal.ui

29 lines
628 B
Plaintext
Raw Normal View History

2023-09-14 10:28:07 +08:00
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@4.19.0/css/xterm.css" />
<link rel="stylesheet" href="/bricks/css/bricks.css" />
<script src="https://cdn.jsdelivr.net/npm/xterm@4.19.0/lib/xterm.js"></script>
<script src="
https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.8.0/lib/xterm-addon-fit.min.js
"></script>
</head>
<body>
<script src="/bricks/bricks.js"></script>
<script>
const opts =
{
"widget": {
"widgettype":"Wterm",
"options":{
"ws_url":"ws://localhost/test/dev.xterm"
}
}
}
;
const app = new BricksApp(opts);
app.run();
</script>
</body>
</html>