aisk / pick

create curses based interactive selection list in the terminal
MIT License
729 stars 63 forks source link

Pick feature is not working in VScode terminal #36

Closed shantanutheone closed 4 years ago

shantanutheone commented 4 years ago

Up or Down Arrow is not working in vscode terminal

hartwork commented 4 years ago

Does it work outside of VScode?

Just an idea: Does VScode have an option somewhere to enable VT emulation? Else, is VT emulation enabled in general (system wide) for you?

shantanutheone commented 4 years ago

Yes, it does work outside of VScode and also I have enabled VT emulation from powershell of VScode but this doesn't work too.

hartwork commented 4 years ago

Which curses module for Python are you using on Windows?

shantanutheone commented 4 years ago

Not using any curses module. Should I be?

hartwork commented 4 years ago

Pick uses curses and the way I read #15 I assumed you installed some curses module manually at some point in the past — no?

shantanutheone commented 4 years ago

Yes yes now i remember the prerequisites of the pick module so i followed the readme and installed it like - pip install windows-curses

wong2 commented 4 years ago

Does it work now?

shantanutheone commented 4 years ago

No ofcourse not, i was telling the answer of your question that how do i installed curses.

hartwork commented 4 years ago

@shantanutheone : @wong2 is not me/@hartwork :smile: @wong2: Nothing changed, we just gathered more information on the precise environment

wong2 commented 4 years ago

ok I'll investigate it

shantanutheone commented 4 years ago

@wong2 Yes please check it by running it in VScode terminal. You'll know exactly what i'm talking about.

wong2 commented 4 years ago
截屏2020-08-16 下午12 30 18

I tried and it works for me

shantanutheone commented 4 years ago

Ok then I'll check my VScode terminal setting then.

i30817 commented 2 years ago

I have this same problem (arrow keys not moving the cursor and printing) while trying to make my application work in windows (through testing in wine).

Might not be worth it to you if it's a wine only problem although i'd prefer the peace of mind confirming that Screenshot from 2022-03-14 13-11-36

I'm using the curses package from the pip install of my app through wine (transitively from pick) and it did install:

Successfully installed beautifulsoup4-4.10.0 click-8.0.4 colorama-0.4.4 lxml-4.8.0 pick-1.2.0 rhdndat-2.0.0 soupsieve-2.3.1 typer-0.4.0 windows-curses-2.3.0

nosing around the internet made me suspicious of this bug report, which seems a very similar problem: https://github.com/microsoft/vscode/issues/112405

maybe wine behaves like vscode in this?