* Set data at `index` to `cell`.
(index: number, cell: ICellData)
| 196 | * Set data at `index` to `cell`. |
| 197 | */ |
| 198 | public setCell(index: number, cell: ICellData): void { |
| 199 | if (cell.content & Content.IS_COMBINED_MASK) { |
| 200 | this._combined[index] = cell.combinedData; |
| 201 | } |
| 202 | if (cell.bg & BgFlags.HAS_EXTENDED) { |
| 203 | this._extendedAttrs[index] = cell.extended; |
| 204 | } |
| 205 | this._data[index * CELL_SIZE + Cell.CONTENT] = cell.content; |
| 206 | this._data[index * CELL_SIZE + Cell.FG] = cell.fg; |
| 207 | this._data[index * CELL_SIZE + Cell.BG] = cell.bg; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Set cell data from input handler. |
no outgoing calls