-
Notifications
You must be signed in to change notification settings - Fork 330
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
Running inside a bash script causes invisible select navigation #41
Comments
I'm trying to reproduce this behavior on my machine, but couldn't. I'm on macOS High Sierra, using zsh 5.3, GNU bash 3.2.57, Go 1.9.2 darwin/amd64. For detailed versions, check the last paragraph. I just copy-pasted the Select example in the So my working directory looks like this:
First, when I run the Detailed outputs of my environments are:
|
I also didn't have an issue on Linux with bash. At least not if the snippet you posted @Allendar . Maybe your full script is doing something before the go call and interfering with promptui? |
I wanted to try to test it again with the latest version but got:
In the meantime I'll try to run a previous version and see if I can find out more about the navigational issue. |
@Allendar That should be fixed by #47. Try run |
It works now :). I was using a new style in my bash script already, which also didn't seem to work, but after dissecting it it was the redirecting/piping to https://github.com/maruel/panicparse output like so: go run main.go -env=$ENV $RESETDB 2>&1 | pp Without |
How about using this method instead? It'll redirect Here's how you can do it in one line: go run main.go -env=$ENV $RESETDB 2> panic.txt || pp panic.txt && rm panic.txt And in my case, |
That works perfect! Thank you very much 😊 |
I noticed that the
select
functionality (as shown in theREADME
example) fails to update and give visual feedback when running inside a bash script.I have this script for my project:
Running the
go run
line in Bash or ZSH works fine when navigating the list, but inside the script there's no feedback, although in the Select Day: example, if I press down twice for example and hit enter it did choose Wednesday. So it works, but just doesn't visually update.10.13.1
go1.9.2 darwin/amd64
5.3
and Bash version is3.2
The text was updated successfully, but these errors were encountered: