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

Method reset

addons/addon-image/src/ImageAddon.ts:150–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148
149 // Note: storageLimit is skipped here to not intoduce a surprising side effect.
150 public reset(): boolean {
151 // reset options customizable by sequences to defaults
152 this._opts.sixelScrolling = this._defaultOpts.sixelScrolling;
153 this._opts.sixelPaletteLimit = this._defaultOpts.sixelPaletteLimit;
154 // also clear image storage
155 this._storage?.reset();
156 // reset protocol handlers
157 for (const handler of this._handlers.values()) {
158 handler.reset();
159 }
160 return false;
161 }
162
163 public get storageLimit(): number {
164 return this._storage?.getLimit() || -1;

Callers 1

activateMethod · 0.95

Calls 2

resetMethod · 0.65
valuesMethod · 0.45

Tested by

no test coverage detected