Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Overwrite current line to show progress instead of writing new line #1478

Closed
tigerros opened this issue Sep 20, 2023 · 2 comments
Closed
Labels
bug Something isn't working cli Related to the dioxus-cli program

Comments

@tigerros
Copy link

Specific Demand

Currently, to show progress when compiling, the CLI writes a new line to the terminal instead of overwriting the current one. It would be preferable to simply overwrite the current line. Current behavior:

image

Implement Suggestion

We can use the indicatif spinner.

@ealmloff ealmloff added bug Something isn't working cli Related to the dioxus-cli program labels Sep 20, 2023
@ealmloff
Copy link
Member

I just installed the latest git version of the CLI, and this appears to already be fixed. (fixed by #1410)

Screen.Recording.2023-09-20.at.8.21.42.AM.mov

@foresterre
Copy link
Contributor

I had the same issue on Windows 11 x64 (with Powershel 7 and windows terminal 1.18), and dioxus-cli 0.5.4:

$ dx --version
dioxus 0.5.4

See: https://gist.github.com/foresterre/3630ef11472c4fdc1523af2397f73818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program
Projects
None yet
Development

No branches or pull requests

3 participants