Skip to content

fix readline support#4133

Closed
florentx wants to merge 1 commit into
Textualize:masterfrom
florentx:add_readline
Closed

fix readline support#4133
florentx wants to merge 1 commit into
Textualize:masterfrom
florentx:add_readline

Conversation

@florentx
Copy link
Copy Markdown

On Linux, I had the issue when using Prompt.ask(...) , Confirm.ask(...) or Console.input(...).
I import builtin readline to get line editing capability.

When navigating the line to the left with the arrow key, cursor goes to the start of the line and overwrite the prompt text.
This can be fixed, if the input built-in function receives the prompt text.

Also I've added a convenient helper (static method) to enable readline.

@florentx
Copy link
Copy Markdown
Author

@willmcgugan it is a bit harsh to get a close notification without a comment.

Is there any policy violation? I did not find, sorry.

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

Successfully merging this pull request may close these issues.

2 participants