Skip to content

Spinner animation still happens with --no-ansi flag #201

@adrianspacely

Description

@adrianspacely

Laravel Prompts Version

0.3.6

Laravel Version

11.44.2

PHP Version

8.4.12

Operating System & Version

macOS 15.6

Terminal Application

VSCode

Description

Spinner animation still happens with --no-ansi flag.

Example: This results in the animation spamming the console output.

⠋ Installing dependencies...
⠙ Installing dependencies...
⠹ Installing dependencies...
...and so on

It would be reasonable to assume --no-ansi would show static text and/or a static replacement icon.

Steps To Reproduce

Standard use of spin($callback, $message);.

You could reproduce this in GitHub Actions or if the command is run in a Laravel Forge deployment.

  • --ansi or no flag provided: Users would expect the animation to occur. You would expect it to print as multiple lines in a CI/CD pipeline (animated)
  • --no-ansi: Users would expect the spinner to be static text (not animated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions