Skip to content

Listr breaks if number of tasks overflow the terminal height #150

@wsams

Description

@wsams

I'm working on a CLI that has a lot of tasks. I noticed that when the number of tasks increases to the point that they overflow the height of the terminal window, Listr cannot update the tasks on the window accordingly. Basically there aren't enough lines in my window to hold every task. (Note, the commands still work, just the UI is broken.)

I'm expecting a spinner on each task that turns to a green check mark after it completes successful, and then proceeds to the next task. But what I'm seeing are tasks duplicating in the list output. Some of them have a dead spinner. Some are checked. And some tasks don't have a spinner or check mark (or X if failed).

To reproduce, create more tasks than there are lines in your visible terminal window and run the command.

It looks like #53 may resolve this issue. Or maybe support scrolling of long lists that go out of the terminal window. Any thoughts or suggestions?

Thanks,
Weldon

I'm on versions:

"@oclif/command": "1.5.19",
"@oclif/config": "1.13.3",
"@oclif/plugin-help": "2.2.3",
"@oclif/dev-cli": "1.22.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions