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
gum spin --show-output truncates output from the command to match the size of the current terminal.
For example, if your terminal were 14 lines tall by 80 lines wide, gum spin --show-output would print only first 80 characters from the last 14 lines of output from whatever command was run.
To Reproduce
Steps to reproduce the behavior:
Determine the size of your current terminal. This one is intentionally small to better demonstrate the issue.
$ tput cols
30
$ tput lines
14
Run gum spin with a command that produces larger output than your terminal size. The example command prints the numbers 0 through 100 with fixed-width zero padding of 31 characters. The "ones" place is the 31st character, extending beyond the terminal width, and will be cut off by gum.
Sorry, let me edit the issue to clarify the behavior I expect. I'm only expecting the full output once the command completes, not while the command is still running / the spinner is still spinning.
I also noticed that the output is cut off horizontally as well. I'll add reproduction steps for that too.
Describe the bug
gum spin --show-output
truncates output from the command to match the size of the current terminal.For example, if your terminal were 14 lines tall by 80 lines wide,
gum spin --show-output
would print only first 80 characters from the last 14 lines of output from whatever command was run.To Reproduce
Steps to reproduce the behavior:
gum spin
with a command that produces larger output than your terminal size. The example command prints the numbers 0 through 100 with fixed-width zero padding of 31 characters. The "ones" place is the 31st character, extending beyond the terminal width, and will be cut off by gum.Expected behavior
gum spin --show-output
should print the entire, untruncated output of the command once the command returns.Desktop (please complete the following information):
Additional context
Same behavior in both in bash 5.2 and zsh 5.9.
The text was updated successfully, but these errors were encountered: