MCPcopy
hub / github.com/xtermjs/xterm.js / _processSGR0

Method _processSGR0

src/common/InputHandler.ts:2414–2423  ·  view source on GitHub ↗
(attr: IAttributeData)

Source from the content-addressed store, hash-verified

2412 }
2413
2414 private _processSGR0(attr: IAttributeData): void {
2415 attr.fg = DEFAULT_ATTR_DATA.fg;
2416 attr.bg = DEFAULT_ATTR_DATA.bg;
2417 attr.extended = attr.extended.clone();
2418 // Reset underline style and color. Note that we don't want to reset other
2419 // fields such as the url id.
2420 attr.extended.underlineStyle = UnderlineStyle.NONE;
2421 attr.extended.underlineColor &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
2422 attr.updateExtended();
2423 }
2424
2425 /**
2426 * CSI Pm m Character Attributes (SGR).

Callers 1

charAttributesMethod · 0.95

Calls 2

cloneMethod · 0.65
updateExtendedMethod · 0.65

Tested by

no test coverage detected