fix(shell): improve shell output presentation and usability (#8837)

This commit is contained in:
Gal Zahavi
2025-09-30 13:44:58 -07:00
committed by GitHub
parent c0400a4414
commit 6695c32aa2
4 changed files with 107 additions and 17 deletions
@@ -131,15 +131,12 @@ class Cell {
}
}
export function serializeTerminalToObject(
terminal: Terminal,
options?: { defaultFg?: string; defaultBg?: string },
): AnsiOutput {
export function serializeTerminalToObject(terminal: Terminal): AnsiOutput {
const buffer = terminal.buffer.active;
const cursorX = buffer.cursorX;
const cursorY = buffer.cursorY;
const defaultFg = options?.defaultFg ?? '#ffffff';
const defaultBg = options?.defaultBg ?? '#000000';
const defaultFg = '';
const defaultBg = '';
const result: AnsiOutput = [];