export const createEmptyCell = () => ({
    char: ' ',
    fg: '',
    bg: '',
    bold: false,
    dim: false,
    underline: false,
    italic: false,
    strikethrough: false
});
export const createEmptyLine = (width) => Array.from({ length: width }, createEmptyCell);
/**
 * createStyledCell - Create a Cell with all defaults, applying only the provided overrides.
 * Eliminates the need to write out all 8 Cell properties at every call site.
 */
export const createStyledCell = (char, overrides = {}) => ({
    char,
    fg: overrides.fg ?? '',
    bg: overrides.bg ?? '',
    bold: overrides.bold ?? false,
    dim: overrides.dim ?? false,
    underline: overrides.underline ?? false,
    italic: overrides.italic ?? false,
    strikethrough: overrides.strikethrough ?? false,
    link: overrides.link,
});
