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

Allow setting prompt once readline is running #248

Closed
mlasevich opened this issue Apr 3, 2018 · 0 comments
Closed

Allow setting prompt once readline is running #248

mlasevich opened this issue Apr 3, 2018 · 0 comments
Milestone

Comments

@mlasevich
Copy link

Currently there is no easy way to update the prompt once readline is called. Specifically methods setPrompt() and setRightPrompt() are not accessible in ReadLineImpl. It would be nice to be able to update the prompt without having to kill readline and start a new one.

Use case is when updating data from a secondary thread, it is sometimes nice to update the prompt(for example if prompt reflects a status that changed in the background)

Alternative is to allow variables in prompts, variables that can be updated in the background and displayed on readline.refresh()/redrawLine()

Thank you.

-M

@gnodet gnodet closed this as completed in e46f9f1 Apr 3, 2018
@gnodet gnodet added this to the 3.7.0 milestone Apr 5, 2018
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

2 participants