MCPcopy Create free account
hub / github.com/codeaashu/claude-code / stylesEqual

Function stylesEqual

src/ink/termio/types.ts:86–101  ·  view source on GitHub ↗
(a: TextStyle, b: TextStyle)

Source from the content-addressed store, hash-verified

84
85/** Check if two styles are equal */
86export 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 */
104export function colorsEqual(a: Color, b: Color): boolean {

Callers

nothing calls this directly

Calls 1

colorsEqualFunction · 0.85

Tested by

no test coverage detected