* 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, )
| 1629 | * previous frame that needs to be cleared. |
| 1630 | */ |
| 1631 | function diffRowRemoved( |
| 1632 | prev: Screen, |
| 1633 | ci: number, |
| 1634 | y: number, |
| 1635 | startX: number, |
| 1636 | endX: number, |
| 1637 | prevCell: Cell, |
| 1638 | cb: DiffCallback, |
| 1639 | ): boolean { |
| 1640 | for (let x = startX; x < endX; x++, ci += 2) { |
| 1641 | cellAtCI(prev, ci, prevCell) |
| 1642 | if (cb(x, y, prevCell, undefined)) return true |
| 1643 | } |
| 1644 | return false |
| 1645 | } |
| 1646 | |
| 1647 | /** |
| 1648 | * Emit additions for a row that only exists in next (height grew). |
no test coverage detected