Initial commit; Added xterm window & go backend

This commit is contained in:
2023-03-02 21:34:23 +01:00
commit da00ecf8c1
11 changed files with 547 additions and 0 deletions

10
frontend/src/main.ts Normal file
View File

@ -0,0 +1,10 @@
import { Terminal } from "xterm";
const term = new Terminal();
term.open(document.getElementById("terminal")!);
//@ts-ignore
window.__WRITE_TERMINAL = (data: string) => {
term.write(data);
};

1
frontend/src/vite-env.d.ts vendored Normal file
View File

@ -0,0 +1 @@
/// <reference types="vite/client" />