Skip to content

fix(anime): render frames correctly in raw terminals - #51

Merged
calmcacil merged 1 commit into
mainfrom
fix/anime-raw-terminal-rendering
Jul 16, 2026
Merged

fix(anime): render frames correctly in raw terminals#51
calmcacil merged 1 commit into
mainfrom
fix/anime-raw-terminal-rendering

Conversation

@calmcacil

Copy link
Copy Markdown
Owner

Summary

  • emit CRLF line endings for anime frames while stdin is in raw terminal mode
  • preserve normal LF output when raw mode is unavailable
  • apply the same terminal handling to search and detail frames
  • add regression coverage at the terminal-output boundary

Root cause

term.MakeRaw disables output newline translation. The renderer wrote bare LF characters, so the cursor moved down without returning to column 1 and produced the staircase layout.

Validation

  • make check
  • live AniList search through util-linux script pseudo-terminal

@calmcacil
calmcacil merged commit ee399db into main Jul 16, 2026
7 checks passed
@calmcacil
calmcacil deleted the fix/anime-raw-terminal-rendering branch July 16, 2026 21:44
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