Skip to content

fix(tui): keep footer redraws out of scrollback - #35

Closed
wooksong wants to merge 1 commit into
TaewoooPark:mainfrom
wooksong:fix/28-footer-scrollback
Closed

wooksong wants to merge 1 commit into
TaewoooPark:mainfrom
wooksong:fix/28-footer-scrollback

Conversation

@wooksong

Copy link
Copy Markdown
Contributor

Summary

  • Move steady footer redraws with counted cursor movement instead of line feeds.
  • Clip live footer content to the viewport without committing omitted prefixes early.
  • Keep composer and footer rows width-safe on narrow and Ambiguous-width terminals, including pasted tabs.

Testing

  • node_modules/.bin/vitest run
  • node_modules/.bin/tsc --noEmit
  • node_modules/.bin/tsx packages/tools/src/lint-cli.ts
  • node scripts/build.mjs
  • git diff --check upstream/main...HEAD

Fixes #28

Use counted cursor movement for steady footer redraws, clip live content to the viewport, and keep composer rows within terminal width.

Account conservatively for settled rows and pasted tabs so footer reservations remain safe across terminal width policies.

Fixes TaewoooPark#28
@wooksong

Copy link
Copy Markdown
Contributor Author

#34 solves the same problem, so there is nothing further to add here.

@wooksong

Copy link
Copy Markdown
Contributor Author

Closing in favor of #34.

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.

Prevent TUI footer redraws from polluting scrollback

1 participant