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

Import readline module for better text entry #23

Open
jbteves opened this issue Jan 17, 2020 · 0 comments
Open

Import readline module for better text entry #23

jbteves opened this issue Jan 17, 2020 · 0 comments

Comments

@jbteves
Copy link

jbteves commented Jan 17, 2020

In vtcmd, arrow keys do not work correctly. In Python3, you can resolve this by importing readline, which will allow standard shell behaviors before the input is loaded into the program. e.g.,

thing = input('>>>')

Followed by ACB<-<-, will result in ACB[[A[[A| (with | the cursor location) on some systems.
However,

import readline
thing = input('>>>')

Followed by the same will result in the desired A|CB.

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