* Emit removals for a row that only exists in prev (height shrank). * Cannot skip empty cells — the terminal still has content from the * previous frame that needs to be cleared.
( prev: Screen, ci: number, y: number, startX: number, endX: number, prevCell: Cell, cb: DiffCallback, )
| 1261 | * previous frame that needs to be cleared. |
| 1262 | */ |
| 1263 | function diffRowRemoved( |
| 1264 | prev: Screen, |
| 1265 | ci: number, |
| 1266 | y: number, |
| 1267 | startX: number, |
| 1268 | endX: number, |
| 1269 | prevCell: Cell, |
| 1270 | cb: DiffCallback, |
| 1271 | ): boolean { |
| 1272 | for (let x = startX; x < endX; x++, ci += 2) { |
| 1273 | cellAtCI(prev, ci, prevCell) |
| 1274 | if (cb(x, y, prevCell, undefined)) return true |
| 1275 | } |
| 1276 | return false |
| 1277 | } |
| 1278 | |
| 1279 | /** |
| 1280 | * Emit additions for a row that only exists in next (height grew). |
no test coverage detected