websocket

This commit is contained in:
ACoolName 2024-06-02 21:58:05 +03:00
parent 67350e3159
commit c62c20e10a

View File

@ -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 (<>