websocket
This commit is contained in:
parent
67350e3159
commit
c62c20e10a
@ -275,14 +275,11 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="terminal"></div>
|
<div id="terminal"></div>
|
||||||
<script>
|
|
||||||
var term = new Terminal();
|
|
||||||
term.open(document.getElementById('terminal'));
|
|
||||||
term.write('Hello from \x1B[1;3;31mxterm.js\x1B[0m $ ')
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`)
|
`)
|
||||||
|
const root = ReactDOM.createRoot(NewWindow.document.getElementById('terminal')!)
|
||||||
|
root.render(<TerminalComponent websocket={websocket}/>)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (<>
|
return (<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user