feat(ui): add dynamic toggle for alternate buffer mode

- Prevents memory access out of bounds crash in yoga-wasm by avoiding synchronous unmounts of history items
- Eliminates duplicated footer artifacts when exiting alternate buffer by ensuring Ink has time to issue erasure codes before swapping terminal buffers
- Fully restores normal buffer scrollback without clipping or duplicating history
- Resolves startup layout rendering bug when alternate buffer is set in config by manually handling terminal transitions instead of letting Ink's alternateBuffer renderer take over
This commit is contained in:
Spencer
2026-04-02 15:37:49 +00:00
parent 15298b28c2
commit 2c4fe9f245
44 changed files with 599 additions and 457 deletions
@@ -86,7 +86,7 @@ const Demo = () => {
});
return (
<MouseProvider mouseEventsEnabled={true}>
<MouseProvider>
<KeypressProvider>
<ScrollProvider>
<Box