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

Method _preserveStack

src/common/InputHandler.ts:387–393  ·  view source on GitHub ↗

* Async parse support.

(cursorStartX: number, cursorStartY: number, decodedLength: number, position: number)

Source from the content-addressed store, hash-verified

385 * Async parse support.
386 */
387 private _preserveStack(cursorStartX: number, cursorStartY: number, decodedLength: number, position: number): void {
388 this._parseStack.paused = true;
389 this._parseStack.cursorStartX = cursorStartX;
390 this._parseStack.cursorStartY = cursorStartY;
391 this._parseStack.decodedLength = decodedLength;
392 this._parseStack.position = position;
393 }
394
395 private _logSlowResolvingAsync(p: Promise<boolean>): void {
396 // log a limited warning about an async handler taking too long

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected