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

Method hook

addons/addon-image/src/SixelHandler.ts:54–63  ·  view source on GitHub ↗
(params: IParams)

Source from the content-addressed store, hash-verified

52 }
53
54 public hook(params: IParams): void {
55 this._size = 0;
56 this._aborted = false;
57 if (this._dec) {
58 const fillColor = params.params[1] === 1 ? 0 : extractActiveBg(
59 this._coreTerminal._core._inputHandler._curAttrData,
60 this._coreTerminal._core._themeService?.colors);
61 this._dec.init(fillColor, null, this._opts.sixelPaletteLimit);
62 }
63 }
64
65 public put(data: Uint32Array, start: number, end: number): void {
66 if (this._aborted || !this._dec) {

Callers

nothing calls this directly

Calls 2

extractActiveBgFunction · 0.85
initMethod · 0.80

Tested by

no test coverage detected