Skip to content

Support incremental output in the pager - #3534

Merged
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-pager-streaming-flush
May 30, 2026
Merged

Support incremental output in the pager#3534
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-pager-streaming-flush

Conversation

@kdeldycke

@kdeldycke kdeldycke commented May 29, 2026

Copy link
Copy Markdown
Collaborator

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
@Rowlando13
Rowlando13 merged commit cd9bdd9 into pallets:stable May 30, 2026
12 checks passed
@kdeldycke
kdeldycke deleted the fix-pager-streaming-flush branch June 3, 2026 11:47
@pallets pallets deleted a comment from heziamo Jun 7, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 25, 2026
@kdeldycke kdeldycke added the help output Help text formatting, layout, and --help rendering label Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

help output Help text formatting, layout, and --help rendering

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

2 participants