feat: add file tabs and improve terminal rendering with WebGL

This commit is contained in:
Mohamed Boudra
2026-03-02 20:02:54 +07:00
parent 92b5f1e963
commit f418f3ab02
25 changed files with 1214 additions and 696 deletions
+35
View File
@@ -0,0 +1,35 @@
import type { ITheme } from "@xterm/xterm";
import type { Theme } from "@/styles/theme";
type TerminalPalette = Theme["colors"]["terminal"];
export function toXtermTheme(terminal: TerminalPalette): ITheme {
return {
background: terminal.background,
foreground: terminal.foreground,
cursor: terminal.cursor,
cursorAccent: terminal.cursorAccent,
selectionBackground: terminal.selectionBackground,
selectionForeground: terminal.selectionForeground,
black: terminal.black,
red: terminal.red,
green: terminal.green,
yellow: terminal.yellow,
blue: terminal.blue,
magenta: terminal.magenta,
cyan: terminal.cyan,
white: terminal.white,
brightBlack: terminal.brightBlack,
brightRed: terminal.brightRed,
brightGreen: terminal.brightGreen,
brightYellow: terminal.brightYellow,
brightBlue: terminal.brightBlue,
brightMagenta: terminal.brightMagenta,
brightCyan: terminal.brightCyan,
brightWhite: terminal.brightWhite,
};
}