-
Notifications
You must be signed in to change notification settings - Fork 352
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 input - missing cursor when running in container images (since v0.10.0) #391
Comments
It looks like you're trying to run gum in a non-interactive environment. |
yes, the |
I think its because it reports TERM as xterm, which isn't pick up as supporting colors by termenv. For now you can workaround by setting cc/ @aymanbagabas do you know if this works the same way in lipgloss v2? |
Good point! It would produce the same results in v2. This is related to colorprofile. |
@caarlos0 I've opened charmbracelet/colorprofile#22 to resolve this issue in v2 |
thanks @aymanbagabas! |
Describe the bug
I am writing a script that uses
gum input --value "default-value"
. The default value must be edited by the user.The problem is, that there is no cursor on screen, making it hard to know where the cursor is exactly. The cursor still exists and it can be moved by pressing the arrow keys and counting the number of characters, but there is no on screen indication for the current cursor position
ubuntu:22.04
andcharmcli/gum:v0.10.0
)charmcli/gum:v0.9.0
image worksmain
-branch. Tested withdocker.io/golang
image andgo install github.com/charmbracelet/gum@main
To Reproduce
# Produces the bug podman run -it --rm docker.io/charmcli/gum:v0.10.0 input
# Produces the bug podman run -it --rm docker.io/golang go install github.com/charmbracelet/gum@main gum input
# v0.9.0 image works podman run -it --rm docker.io/charmcli/gum:v0.9.0 input
# The native binary works $ ./gum --version gum version v0.10.0 (0f0f8e9) $ ./gum input
Expected behavior
There should be a blinking box, showing the current position of the cursor
Desktop (please complete the following information):
Additional context
I don't really have access to a different Linux distro or container runtime at the moment. If there are any additional setting I can try, let me know
The text was updated successfully, but these errors were encountered: