(
prev: { cols: number; rows: number },
next: { cols: number; rows: number },
)
| 56 | * history as a duplicate. We detect a shrink so the UI can clear + repaint cleanly. |
| 57 | */ |
| 58 | export function didShrink( |
| 59 | prev: { cols: number; rows: number }, |
| 60 | next: { cols: number; rows: number }, |
| 61 | ): boolean { |
| 62 | return next.cols < prev.cols || next.rows < prev.rows; |
| 63 | } |
| 64 | |
| 65 | /** ANSI: clear the entire screen AND the scrollback, home the cursor. Used on a |
| 66 | * shrink so the reflowed/duplicated frame is wiped before Ink repaints. */ |
no outgoing calls
no test coverage detected