* Called by the component on mount/unmount. * Controls cursor.y clamping in the renderer and gates alt-screen-aware * behavior in SIGCONT/resize/unmount handlers. Repaints on change so * the first alt-screen frame (and first main-screen frame on exit) is * a full redraw
(active: boolean, mouseTracking = false)
| 859 | * a full redraw with no stale diff state. |
| 860 | */ |
| 861 | setAltScreenActive(active: boolean, mouseTracking = false): void { |
| 862 | if (this.altScreenActive === active) return; |
| 863 | this.altScreenActive = active; |
| 864 | this.altScreenMouseTracking = active && mouseTracking; |
| 865 | if (active) { |
| 866 | this.resetFramesForAltScreen(); |
| 867 | } else { |
| 868 | this.repaint(); |
| 869 | } |
| 870 | } |
| 871 | get isAltScreenActive(): boolean { |
| 872 | return this.altScreenActive; |
| 873 | } |
no test coverage detected