VtStyle.fromNative constructor

VtStyle.fromNative(
  1. GhosttyStyle native
)

Implementation

factory VtStyle.fromNative(bindings.GhosttyStyle native) {
  return VtStyle(
    foreground: VtStyleColor.fromNative(native.fg_color),
    background: VtStyleColor.fromNative(native.bg_color),
    underlineColor: VtStyleColor.fromNative(native.underline_color),
    bold: native.bold,
    italic: native.italic,
    faint: native.faint,
    blink: native.blink,
    inverse: native.inverse,
    invisible: native.invisible,
    strikethrough: native.strikethrough,
    overline: native.overline,
    underline: bindings.GhosttySgrUnderline.fromValue(native.underline),
  );
}