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

Method screenAlignmentPattern

src/common/InputHandler.ts:3367–3387  ·  view source on GitHub ↗

* ESC # 8 * DEC mnemonic: DECALN (https://vt100.net/docs/vt510-rm/DECALN.html) * This control function fills the complete screen area with * a test pattern (E) used for adjusting screen alignment. * * @vt: #Y ESC DECALN "Screen Alignment Pattern" "ESC # 8" "Fill viewport

()

Source from the content-addressed store, hash-verified

3365 * @vt: #Y ESC DECALN "Screen Alignment Pattern" "ESC # 8" "Fill viewport with a test pattern (E)."
3366 */
3367 public screenAlignmentPattern(): boolean {
3368 // prepare cell data
3369 const cell = new CellData();
3370 cell.content = 1 << Content.WIDTH_SHIFT | 'E'.charCodeAt(0);
3371 cell.fg = this._curAttrData.fg;
3372 cell.bg = this._curAttrData.bg;
3373
3374
3375 this._setCursor(0, 0);
3376 for (let yOffset = 0; yOffset < this._bufferService.rows; ++yOffset) {
3377 const row = this._activeBuffer.ybase + this._activeBuffer.y + yOffset;
3378 const line = this._activeBuffer.lines.get(row);
3379 if (line) {
3380 line.fill(cell);
3381 line.isWrapped = false;
3382 }
3383 }
3384 this._dirtyRowTracker.markAllDirty();
3385 this._setCursor(0, 0);
3386 return true;
3387 }
3388
3389
3390 /**

Callers 1

constructorMethod · 0.95

Calls 4

_setCursorMethod · 0.95
getMethod · 0.65
fillMethod · 0.65
markAllDirtyMethod · 0.65

Tested by

no test coverage detected