promptui icon indicating copy to clipboard operation
promptui copied to clipboard

promptui.Select does not work on Windows

Open tadvi opened this issue 6 years ago • 8 comments

promptui.Select does not work on Windows. Keyboard selection does not respond. Environment: Windows 10 and command prompt.

tadvi avatar Nov 30 '17 19:11 tadvi

Approved. I have the same bug on Windows10. I tested 'Select' example from 'Basic usage'.

acrap avatar Dec 01 '17 12:12 acrap

Possibly related to #31 (i.e windows issues)

PLaRoche avatar Dec 01 '17 13:12 PLaRoche

Keyboard selection only work using vim keys on Windows at the moment (j k). Readline, the lib we are using to interact with terminals, doesn't seem to trigger any arrow key events.

louisbranch avatar Dec 01 '17 20:12 louisbranch

#37 allows me to use vim keybindings for up and down (j and k) but arrows are not resolved by it for me, just as an fyi.

KaelBaldwin avatar Dec 04 '17 14:12 KaelBaldwin

Confirmed the behavior @KaelBaldwin noted on MS Windows Server 2012 R2.

jesselang avatar Dec 05 '17 16:12 jesselang

Is there plans to support arrow keys on Windows? Would be very helpful since jk keys are confusing to some users

danawoodman avatar Nov 29 '19 02:11 danawoodman

Just checking in on this as well. It is very confusing for my Windows users to use j + k instead of arrow keys. Could an option/flag at least be added? Are pull requests accepted?

ciehanski avatar Feb 21 '20 05:02 ciehanski

Works fine in Linux, but fails in Windows: "Prompt failed ^D"

$ go version go version go1.14.2 windows/amd64

perolo avatar Oct 08 '20 09:10 perolo