Cannot move cursor when running a list prompt in a docker container
See original GitHub issueI’m trying to use a list prompt, and while it does work properly with the arrow keys on my Ubuntu 16.04 machine, the cursor doesn’t move at all if I run the code below inside a docker container. 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 clues?
import inquirer
inquirer.prompt([inquirer.List(name="q", message="foo", choices=range(5))])
I’m guessing this may have something to do with docker overriding some keyboard or terminal event handlers, but this far exceeds my knowledge.
I really love this library, however this is a deal breaker for me and I can’t use it until this is fixed… 😢
PS: I’ve just checked and the same behavior occurs with inquirer.Checkbox
prompts.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error "The input device is not a TTY" - Stack Overflow
It's a terminal interface that supports escape sequences, moving the cursor around, etc, that comes from the old days of dumb terminals attached...
Read more >Docker CMD vs ENTRYPOINT: What's The Difference & How ...
Unlike CMD commands, ENTRYPOINT commands cannot be ignored or overridden—even when the container runs with command line arguments stated.
Read more >Code Running Assistance | PyCharm Documentation - JetBrains
It means that the Solver run/debug configuration is temporary - PyCharm has created it automatically. OK, now click the down arrow to reveal...
Read more >Run Jupyter notebooks in your workspace - Azure
Learn how run a Jupyter notebook without leaving your workspace in Azure ... You also see the cursor prompt in the cell in...
Read more >Python and Django tutorial in Visual Studio Code
You know the environment is activated when the command prompt shows (.venv) at the beginning. Create and run a minimal Django app. In...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you found the solution?
this happens also outside of a docker container (win 10, powershell 7.2.1)