Skip to content

SK-20: Clear screen on startup transition#21

Merged
mrdon merged 1 commit into
mainfrom
mrdon/SK-20-fix-startup-rendering-artifacts
Apr 16, 2026
Merged

SK-20: Clear screen on startup transition#21
mrdon merged 1 commit into
mainfrom
mrdon/SK-20-fix-startup-rendering-artifacts

Conversation

@mrdon
Copy link
Copy Markdown
Contributor

@mrdon mrdon commented Apr 16, 2026

Summary

  • Issue tea.ClearScreen when transitioning from startup log to main view
  • Startup log lines rendered before terminal width is known lack EraseLineRight, so residual characters (e.g. (4/4)) persist past the scrollbar when the main scene takes over
  • Changed tryStartupTransition to return a tea.Cmd and threaded it through all callers

Closes #20

Security implications of changes have been considered

- Issue tea.ClearScreen when transitioning from
  startup log to main view
- Prevents residual startup log chars from
  persisting past the scrollbar
@mrdon mrdon merged commit a3b3346 into main Apr 16, 2026
3 checks passed
@mrdon mrdon deleted the mrdon/SK-20-fix-startup-rendering-artifacts branch April 16, 2026 23:35
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.

Fix startup rendering artifacts

1 participant