You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spinner doesn't support having console output from the callback function, and I can't think of a way to make this possible at the moment.
The spinner forks a separate process to run the callback so it can continue animating the spinner while the callback is running. As a result, the parent process isn't aware of anything the callback outputs.
Even if it could be made aware, it would be quite complex to render two different outputs. The parent process would probably need to intercept the rendering of the child process so it can erase the spinner, render the child's output, and then resume the spinner below again.
If possible, I'd suggest having the callback return the data required for the table when it's done and output the table after the spinner has completed.
Laravel Prompts Version
0.3.2
Laravel Version
Laravel zero 11.0.3
PHP Version
8.3.15
Operating System & Version
Ubuntu 22.04
Terminal Application
iTerm
Description
Prompt output is cut off, this is likely because off wrong cursor position calculation.
Steps To Reproduce
Noticed this in Laravel Zero when trying to wrap the handle call in the execute function:
This is basically promptception since a table prompt was nested within a spinner prompt. PrevFrame was possibly overriden by the Table output
The text was updated successfully, but these errors were encountered: