question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot move cursor when running a list prompt in a docker container

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
CHOPPER9commented, Feb 3, 2022

this happens also outside of a docker container (win 10, powershell 7.2.1)

Have you found the solution?

0reactions
michelsciortinocommented, Dec 28, 2021

this happens also outside of a docker container (win 10, powershell 7.2.1)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found