(a: TextStyle, b: TextStyle)
| 84 | |
| 85 | /** Check if two styles are equal */ |
| 86 | export function stylesEqual(a: TextStyle, b: TextStyle): boolean { |
| 87 | return ( |
| 88 | a.bold === b.bold && |
| 89 | a.dim === b.dim && |
| 90 | a.italic === b.italic && |
| 91 | a.underline === b.underline && |
| 92 | a.blink === b.blink && |
| 93 | a.inverse === b.inverse && |
| 94 | a.hidden === b.hidden && |
| 95 | a.strikethrough === b.strikethrough && |
| 96 | a.overline === b.overline && |
| 97 | colorsEqual(a.fg, b.fg) && |
| 98 | colorsEqual(a.bg, b.bg) && |
| 99 | colorsEqual(a.underlineColor, b.underlineColor) |
| 100 | ) |
| 101 | } |
| 102 | |
| 103 | /** Check if two colors are equal */ |
| 104 | export function colorsEqual(a: Color, b: Color): boolean { |
nothing calls this directly
no test coverage detected