Skip to content

Printing to stdout breaks the spinner #42

Description

@odisseus

If you try to print something while the spinner is spinning, both the spinner and the output will be borked. I didn't really expect it to work, but I think this behaviour is worth documenting, because it isn't mentioned in the readme.

Python 3.12.2, click-spinner 0.1.10.

Steps to reproduce:

from time import sleep

import click_spinner

if __name__ == '__main__':
    with click_spinner.spinner(force=True):
        for i in range(0, 10):
            sleep(i / 10)
            print(i)

ScreenRecording2024-03-27at02 20 50-ezgif com-video-to-apng-converter

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions