Function
fullResetSequence_CAUSES_FLICKER
(
frame: Frame,
reason: FlickerReason,
stylePool: StylePool,
debug?: { triggerY: number; prevLine: string; nextLine: string },
)
Source from the content-addressed store, hash-verified
| 501 | } |
| 502 | |
| 503 | function fullResetSequence_CAUSES_FLICKER( |
| 504 | frame: Frame, |
| 505 | reason: FlickerReason, |
| 506 | stylePool: StylePool, |
| 507 | debug?: { triggerY: number; prevLine: string; nextLine: string }, |
| 508 | ): Diff { |
| 509 | // After clearTerminal, cursor is at (0, 0) |
| 510 | const screen = new VirtualScreen({ x: 0, y: 0 }, frame.viewport.width) |
| 511 | renderFrame(screen, frame, stylePool) |
| 512 | return [{ type: 'clearTerminal', reason, debug }, ...screen.diff] |
| 513 | } |
| 514 | |
| 515 | function renderFrame( |
| 516 | screen: VirtualScreen, |
Tested by
no test coverage detected