Skip to content

Support incremental output in the pager#3534

Open
kdeldycke wants to merge 1 commit into
pallets:stablefrom
kdeldycke:fix-pager-streaming-flush
Open

Support incremental output in the pager#3534
kdeldycke wants to merge 1 commit into
pallets:stablefrom
kdeldycke:fix-pager-streaming-flush

Conversation

@kdeldycke
Copy link
Copy Markdown
Collaborator

@kdeldycke kdeldycke commented May 29, 2026

This is a simple fix that let the pager incrementally output the chunks of text produced by a generator instead of waiting for it to flush automatically.

So in substance, instead of doing write write write write flush, we do write flush write flush write flush....

Closes #3242 and #2542.

Context: stumble upon that quick fix while working on #3533.

@kdeldycke kdeldycke marked this pull request as draft May 29, 2026 14:49
@kdeldycke kdeldycke added this to the 8.4.2 milestone May 29, 2026
@kdeldycke kdeldycke force-pushed the fix-pager-streaming-flush branch from a532677 to 399919f Compare May 29, 2026 14:51
@kdeldycke kdeldycke added the bug label May 29, 2026
@kdeldycke kdeldycke requested review from Rowlando13 and davidism May 29, 2026 14:55
@kdeldycke kdeldycke marked this pull request as ready for review May 29, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flush stdin after writing to a pager echo_via_pager not working as expected with generators

1 participant