MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / isDefaultStyle

Function isDefaultStyle

src/common/terminal.ts:13–20  ·  view source on GitHub ↗
(style: Partial<StyledSpan>)

Source from the content-addressed store, hash-verified

11};
12
13function isDefaultStyle(style: Partial<StyledSpan>): boolean {
14 return (
15 style.fg === undefined &&
16 style.bg === undefined &&
17 (style.weight === undefined || style.weight === 'normal') &&
18 (style.italic === undefined || style.italic === false)
19 );
20}
21
22abstract class Terminal {
23 width: number | undefined;

Callers 2

getStyleCodesMethod · 0.85
renderSpansMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected