Initial commit; Added xterm window & go backend
This commit is contained in:
10
frontend/src/main.ts
Normal file
10
frontend/src/main.ts
Normal 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
1
frontend/src/vite-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
Reference in New Issue
Block a user