( screen: Screen, x: number, y: number, )
| 891 | } |
| 892 | |
| 893 | export function charInCellAt( |
| 894 | screen: Screen, |
| 895 | x: number, |
| 896 | y: number, |
| 897 | ): string | undefined { |
| 898 | if (x < 0 || y < 0 || x >= screen.width || y >= screen.height) |
| 899 | return undefined |
| 900 | const ci = (y * screen.width + x) << 1 |
| 901 | return screen.charPool.get(screen.cells[ci]!) |
| 902 | } |
| 903 | /** |
| 904 | * Set a cell, optionally creating a spacer for wide characters. |
| 905 | * |