Skip to content

Flush the pager's stdin after each write#3274

Closed
FelmonFekadu wants to merge 2 commits intopallets:mainfrom
FelmonFekadu:fix/pager-incremental-flush
Closed

Flush the pager's stdin after each write#3274
FelmonFekadu wants to merge 2 commits intopallets:mainfrom
FelmonFekadu:fix/pager-incremental-flush

Conversation

@FelmonFekadu
Copy link

Summary

  • flush the pager stdin after each write so slow generators stream output incrementally
  • add a regression test that checks the first line reaches the pager before the generator yields the second line

Testing

  • PYTHONPATH=src pytest tests/test_utils.py

Closes #3242

@davidism davidism closed this Mar 19, 2026
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.

Flush stdin after writing to a pager

2 participants