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

Feature request: clear last prompt #84

Open
aaronrudkin opened this issue Nov 29, 2021 · 0 comments
Open

Feature request: clear last prompt #84

aaronrudkin opened this issue Nov 29, 2021 · 0 comments

Comments

@aaronrudkin
Copy link

aaronrudkin commented Nov 29, 2021

Bullet is awesome!

Here's a feature request: It'd be nice to be able to clear the last prompt from the terminal. I have a script that basically gives the user hundreds of prompts in a row (it's a list of decisions the user has to make for automated coding/data entry). Each decision has a fairly large prompt with 8-10 options. I'd basically like to be able to clear the prompt after it's done and just write a single line for the decision that was made.

This is already fairly easy to do by importing bullet.utils.clearConsoleUp and then calling it with the appropriate number of lines. But it'd be good to add a hook into the actual construction of a given prompt (maybe in the launch() method?) to tell it to do a post-choice cleanup explicitly after the choice is made?

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