prompts icon indicating copy to clipboard operation
prompts copied to clipboard

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

Open adrianspacely opened this issue 3 months ago • 0 comments

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)

adrianspacely avatar Sep 10 '25 02:09 adrianspacely