* 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
()
| 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 | /** |
no test coverage detected