Skip to content

gum spin messes the screen #607

@vt-alt

Description

@vt-alt

Describe the bug
gum started to mess the screen when showing output (regression).

To Reproduce
This is minified example:

$ gum spin --show-output -- seq 22 | less
1
 2
  3
   4
    5
     6
      7
       8
        9
         10
           11
             12
               13
                 14
                   15
                     16
                       17
                         18
                           19
                             20
                               21
                                 22

Actual use case is curling log files and piping it to less causing total screen mess after less exits while spinner was still active: gum spin --show-output -- curl -sSf -L https://git.altlinux.org/tasks/347163/build/100/x86_64/log | less

Expected behavior
0.12.0 worked better:

$ gum spin --show-output -- seq 22 | less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

curl example worked good too.

Desktop (please complete the following information):

  • OS: ALT Linux
  • gum version 0.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcmd/spin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions