Skip to content

Strange spinner behavior in windows terminal #24

@mzylowski

Description

@mzylowski

Hello!

I have a simple multi-platform app (it's designed for windows and linux environments).
Everything works fine for bash terminal, but there is a problem when I start my app on windows.
Few firsts lines is printed with strange symbols but, after that everything is fine and my spinner appears:
app.exe > output.txt
From notepad.exe:

=�[0m message...�[K�
|�[0m message...�[K�
]�[0m message...�[K�
-�[0m message...�[K�
=�[0m message...�[K�
|�[0m message...�[K�
]�[0m message...�[K�

From notepad++:
image

Copied from terminal:

�[K�[?25hmessage...

Is there any way to fix this behavior? Can I init yaspin class with some specific values to make it work or smth?

(Please note for debugging purposes I used custom very simple spinner: =|]-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions