Skip to content

fix: repaint a terminal that shows a blank screen over its content - #53

Merged
edalee merged 1 commit into
mainfrom
fix/terminal-repaint
Oct 19, 2026
Merged

edalee merged 1 commit into
mainfrom
fix/terminal-repaint

Conversation

@edalee

@edalee edalee commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Summary

A terminal pane could go blank apart from its cursor, while its content was still in the buffer. A scroll or a window resize brought it back. #47 covers a focus change or a return from sleep, but not a tab switch or a lost WebGL context.

Test plan

  • typecheck, biome and vitest (150 tests, 5 new in terminal-repaint.test.tsx)
  • After install: switch between several busy tabs, and check that no pane comes back blank

After a tab switch or a lost WebGL context, a pane could show only its
cursor while its content sat in the buffer. A scroll or a resize brought
it back.

- Repaint every row each time a pane becomes active, not only when its size changed.
- On a lost WebGL context, dispose the addon, repaint on the DOM renderer, and load WebGL again on the next activation.
- Redraw Terminal, the periodic atlas flush and the focus redraw from #47 share one repaint.
@edalee
edalee force-pushed the fix/terminal-repaint branch from b74d7fe to 504d8a0 Compare October 19, 2026 22:04
@edalee
edalee merged commit 8fa6313 into main Oct 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant