`import readline` to allow backspace in CLI.
See original GitHub issue- Cookiecutter version: ‘1.4.0’
- Template project url: https://github.com/drivendata/cookiecutter-data-science
- Python version: 3.5.2
- Operating System: macOS 10.12.3
Description:
Importing the readline
package would allow users to backspace in the prompts without it rendering as ^H
. No other change would be needed.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Readline | Node.js v19.3.0 Documentation
Create an AsyncIterator object that iterates through each line in the input stream as a string. This method allows asynchronous iteration of ...
Read more >backspace with hideEchoBack · Issue #17 · anseki/readline-sync
readlineSync deliberately ignore the backspace key, because: Many CLI commands that hide input don't accept backspace key.
Read more >GNU Readline Library
GNU Readline Library. This document describes the GNU Readline Library, a utility which aids in the consistency of user interface across discrete programs ......
Read more >go - How can I read from standard input in the console?
I'm looking for the equivalent of Console.ReadLine() in C#. This is what I currently have: package main import ( "bufio" " ...
Read more >The node.js readline module, for making a cli shell.
For a basic example I put together an example where I am just importing the module in with require, creating an interface with...
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
Hey @hackebrot, any updates on that topic?
I seem to run into the same problem of @aryamccarthy. During the cookiecutter CLI “question” process I occasionaly have to hit the backspace - which messes up the variables.
For every backspace I get an
?
into the variable name. Assuming that my repo is namedmy_repo
but I first wrotemy_repu
and hit backspace one to change it tomy_repo
, cookiecutter will give memy_repo?u
instead ofmy_repo
.I hope this makes the issue a bit clearer.
Cheers Joshua
Also encountering the same problem, anyone trying to fix this?