* Helper method to erase cells in a terminal row. * The cell gets replaced with the eraseChar of the terminal. * @param y The row index relative to the viewport. * @param start The start x index of the range to be erased. * @param end The end x index of the range to be erased (exclusive)
(y: number, start: number, end: number, clearWrap: boolean = false, respectProtect: boolean = false)
| 1145 | * @param respectProtect Whether to respect the protection attribute (DECSCA). |
| 1146 | */ |
| 1147 | private _eraseInBufferLine(y: number, start: number, end: number, clearWrap: boolean = false, respectProtect: boolean = false): void { |
| 1148 | const line = this._activeBuffer.lines.get(this._activeBuffer.ybase + y)!; |
| 1149 | line.replaceCells( |
| 1150 | start, |
| 1151 | end, |
| 1152 | this._activeBuffer.getNullCell(this._eraseAttrData()), |
| 1153 | respectProtect |
| 1154 | ); |
| 1155 | if (clearWrap) { |
| 1156 | line.isWrapped = false; |
| 1157 | } |
| 1158 | } |
| 1159 | |
| 1160 | /** |
| 1161 | * Helper method to reset cells in a terminal row. The cell gets replaced with the eraseChar of |
no test coverage detected