Skip to content
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

Try importing readline #1238

Closed
asmeurer opened this issue Apr 14, 2014 · 0 comments
Closed

Try importing readline #1238

asmeurer opened this issue Apr 14, 2014 · 0 comments

Comments

@asmeurer
Copy link
Contributor

Compare the following two Python scripts (Python 3)

input()
import readline
input()

For each, try typing something and then arrowing left. With the first, it just types ^[[D. With the second, it arrows left. It also supports all the standard things like emacs keybindings and even history.

Nikola should try importing readline for any command that takes user input (such as new_post). I believe it has to be done with try, except because readline is not available on all platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant