( prevWidth: number, nextWidth: number, synchronizedOutputSupported: boolean, )
| 12 | * not show a full blank frame between erase and paint. |
| 13 | */ |
| 14 | export function getAltScreenResizeRepaintMode( |
| 15 | prevWidth: number, |
| 16 | nextWidth: number, |
| 17 | synchronizedOutputSupported: boolean, |
| 18 | ): AltScreenRepaintMode { |
| 19 | if (prevWidth === nextWidth) { |
| 20 | return 'none' |
| 21 | } |
| 22 | |
| 23 | return synchronizedOutputSupported |
| 24 | ? 'erase-before-paint' |
| 25 | : 'repaint-from-home' |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Alt-screen recovery (SIGCONT, sleep/wake, fullscreen editor return) uses the |
no outgoing calls
no test coverage detected