-
Notifications
You must be signed in to change notification settings - Fork 96
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
Cannot move cursor when running a list prompt #117
Comments
I can reproduce the bug. I am also running python 3.9 on windows 10 and cannot move the cursor. Tried on powershell and on cmd. Return key and spacebar selection work. Running the |
I can reproduce the bug as well.
Other options ( |
Could you provide a minimal example code to reproduce the error? |
I was using code from examples provided in repo. import os
import sys
from pprint import pprint
sys.path.append(os.path.realpath("."))
import inquirer # noqa
questions = [
inquirer.List(
"size",
message="What size do you need?",
choices=["Jumbo", "Large", "Standard", "Medium", "Small", "Micro"],
),
inquirer.Checkbox(
"interests",
message="What are you interested in?",
choices=["Computers", "Books", "Science", "Nature", "Fantasy", "History"],
default=["Computers", "Books"],
)
]
answers = inquirer.prompt(questions)
pprint(answers) I'm using IntelliJ Idea from Jet Brains. I was using terminal built into IDE and it didn't want to run as it was supposed to, but then I ran it from PowerShell and it worked. I fount this few days ago by accident. When it was running it in terminal IDE it didn't respond to my arrow presses, but in CMD and PowerShell it did. If someone knows why is this is happening please let me know. 😄 |
Long story short: The way i've discovered was turn off numlock and use the 'numpad arrow keys'. Something like this happened to me, when i was running it on my VSCode built-in terminal, everything worked just fine but when i ran it from my shell (CMD, or PowerShell) the cursor didn't move as well. I don't know why that's happening but in my case i turn off the numlock of my keyboard and i was able to move it pressing the numpad's '8' and '2' that alternative arrows that some keyboards have. (Running on Windows 10 and was on my laptop's keyboard, if that means something!) I've tested it in many ways in my computer and worked, if someone else could check this and say if it worked let me know :D |
So I tested this with python 3.7 and 3.10 on windows 10 and 11. EDIT* |
+1 |
I also can't move the cursor on anaconda's cmd when using the arrows.. and I don't have a numpad. (py397) |
There is any fix for this? |
Same problem, unable to move cursor in Windows 11, also don't have a numpad. Is there as fix or one on the horizon? Many thanks |
Got the same Problem with Windows 11, Python 3.9 and 3.7, no Numblock on the keyboard. |
I provied the fix under magmax/python-readchar#71, but it's still waiting to be merged. |
Same here, would be nice to get a fix. |
@magmax Sorry to bother, could you please merge this PR magmax/python-readchar#71 |
|
@Cube707 moving cursor with keyboard arrows working on windows, thank you! |
Windows 10 |
@staticdev this can probably also be closed |
Similar to issue #40, but I am not trying to run in any container.
Also, similarly, I can still press return to get a value from the prompt, but since the cursor doesn't move it will always give me the first option. Any ideas?
Running on a Windows 10 machine, with Python 3.9 installed. I also assume that I am running the latest version of inquirer
The text was updated successfully, but these errors were encountered: