Skip to content

[Bug] Spinner message overflowing to the next line causes duplication #237

Open
@aliasghar98

Description

@aliasghar98

Environment

  • OS: Windows
  • Node Version: v18.20.4
  • Package: @clack/prompts
  • Package Version: 0.8.2

Describe the bug
If the length of a message displayed using spinner (start) is as long as the terminal window, where the loading dots i.e. ... overflow to the next line in the terminal, it causes message to be duplicated while the spinner is running.

To Reproduce

Image

Steps to reproduce the behavior:

  • Use spinner.start() with a message as long as the terminal window.
  • See the overflow.

Expected behavior
Should overflow to the next line without any duplication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions