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.

`import readline` to allow backspace in CLI.

See original GitHub issue

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:open
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jgoernercommented, Sep 6, 2017

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 named my_repo but I first wrote my_repu and hit backspace one to change it to my_repo, cookiecutter will give me my_repo?u instead of my_repo.

I hope this makes the issue a bit clearer.

Cheers Joshua

0reactions
ShayNehmad-RecoLabscommented, Dec 9, 2021

Also encountering the same problem, anyone trying to fix this?

Read more comments on GitHub >

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

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