This issue tracker is a tool to address bugs in Click itself. Please use
Pallets Discord or Stack Overflow for questions about your own code.
echo_via_pager not working as expected with generators
import time def count(): for i in range(10) time.sleep(1) yield "\ncount {i}"
Expected: The output should be printed one by one
Original: The output is printed in one shot, and the screen is blank for about 10 seconds
Environment:
- Python version: 3.10
- Click version: 8.1.3
This issue tracker is a tool to address bugs in Click itself. Please use
Pallets Discord or Stack Overflow for questions about your own code.
echo_via_pager not working as expected with generators
import time def count(): for i in range(10) time.sleep(1) yield "\ncount {i}"Expected: The output should be printed one by one
Original: The output is printed in one shot, and the screen is blank for about 10 seconds
Environment: