-
Notifications
You must be signed in to change notification settings - Fork 343
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
gum spin messes the screen #607
Comments
aymanbagabas
added a commit
to charmbracelet/bubbletea
that referenced
this issue
Jul 16, 2024
We need to reset the cursor position to the beginning of the line when the program stops or exit. Related: charmbracelet/gum#607
aymanbagabas
added a commit
that referenced
this issue
Jul 16, 2024
We need to pause the main tea.Program process to restore the terminal state before running the sub-process. Fixes: #607
This was referenced Jul 16, 2024
aymanbagabas
added a commit
to charmbracelet/bubbletea
that referenced
this issue
Jul 16, 2024
We need to reset the cursor position to the beginning of the line when the program stops or exit. Related: charmbracelet/gum#607
aymanbagabas
added a commit
to charmbracelet/bubbletea
that referenced
this issue
Jul 16, 2024
We need to reset the cursor position to the beginning of the line when the program stops or exit. Related: charmbracelet/gum#607
aymanbagabas
added a commit
to charmbracelet/bubbletea
that referenced
this issue
Jul 16, 2024
We need to reset the cursor position to the beginning of the line when the program stops or exit. Related: charmbracelet/gum#607
aymanbagabas
added a commit
that referenced
this issue
Jul 16, 2024
We need to pause the main tea.Program process to restore the terminal state before running the sub-process. Fixes: #607
aymanbagabas
added a commit
that referenced
this issue
Jul 16, 2024
We need to pause the main tea.Program process to restore the terminal state before running the sub-process. Fixes: #607
Thanks for the heads up, @vt-alt! This is fixed in |
Hi again! Just a note that this fix is now available in Gum v0.14.2. |
#621 has been reverted because it introduced another bug, reopening |
aymanbagabas
added a commit
that referenced
this issue
Jul 24, 2024
We don't need to check for isatty, always store the output to the designated buffer. Fixes: #607
I am noticing also that on long lines, it's not truncating the lines to $COLUMNS as the normal command would. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
gum started to mess the screen when showing output (regression).
To Reproduce
This is minified example:
Actual use case is
curl
ing log files and piping it toless
causing total screen mess afterless
exits while spinner was still active:gum spin --show-output -- curl -sSf -L https://git.altlinux.org/tasks/347163/build/100/x86_64/log | less
Expected behavior
0.12.0 worked better:
curl
example worked good too.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: