You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import click
def output_generator():
counter = 0
while True:
yield "this is a line of output\n"
if counter == 1024:
click.echo("kaboom", err=True)
click.get_current_context().exit(0)
counter += 1
@click.command
def kaboom():
click.echo_via_pager(output_generator)
if __name__ == "__main__":
kaboom()
Attempt to use the terminal afterwards
Expected result
A working terminal.
Actual behavior
Newlines and output are obscured. Commands may be entered, but they are not displayed.
Workaround
Run the reset command after the command terminates.
Steps to reproduce
Run the following test case:
Attempt to use the terminal afterwards
Expected result
A working terminal.
Actual behavior
Newlines and output are obscured. Commands may be entered, but they are not displayed.
Workaround
Run the
reset
command after the command terminates.Environment:
Reproducible on OS X and Ubuntu (x86_64):
The text was updated successfully, but these errors were encountered: