* Set cell data from input handler. * Since the input handler see the incoming chars as UTF32 codepoints, * it gets an optimized access method.
(index: number, codePoint: number, width: number, attrs: IAttributeData)
| 213 | * it gets an optimized access method. |
| 214 | */ |
| 215 | public setCellFromCodepoint(index: number, codePoint: number, width: number, attrs: IAttributeData): void { |
| 216 | if (attrs.bg & BgFlags.HAS_EXTENDED) { |
| 217 | this._extendedAttrs[index] = attrs.extended; |
| 218 | } |
| 219 | this._data[index * CELL_SIZE + Cell.CONTENT] = codePoint | (width << Content.WIDTH_SHIFT); |
| 220 | this._data[index * CELL_SIZE + Cell.FG] = attrs.fg; |
| 221 | this._data[index * CELL_SIZE + Cell.BG] = attrs.bg; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Add a codepoint to a cell from input handler. |
no outgoing calls
no test coverage detected