feat: fully functional terminal for command center

This commit is contained in:
Luan Estradioto committed 2024-08-15 11:17:18 -03:00
1 parent fcfbba4dc6
commit c2ea8996ee
15 files changed
+624 -57

No files matched your search

+15
View File
@@ -4,3 +4,18 @@
// const app = createApp({});
// app.component("magic-bar", MagicBar);
// app.mount("#vue");
import { Terminal } from '@xterm/xterm';
import '@xterm/xterm/css/xterm.css';
import { FitAddon } from '@xterm/addon-fit';
if (!window.term) {
window.term = new Terminal({
cols: 80,
rows: 30,
fontFamily: '"Fira Code", courier-new, courier, monospace, "Powerline Extra Symbols"',
cursorBlink: true
});
window.fitAddon = new FitAddon();
window.term.loadAddon(window.fitAddon);
}