NDAR / nda-tools

Python package for interacting with NDA web services. Used to validate, submit, and download data to and from NDA.
MIT License
48 stars 22 forks source link

Import readline module for better text entry #23

Open jbteves opened 4 years ago

jbteves commented 4 years ago

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.