bombshell-dev / clack

Effortlessly build beautiful command-line apps
https://clack.cc
5.63k stars 96 forks source link

[Request] Hide last prompt to show new one #43

Closed HypnoticSiege closed 1 year ago

HypnoticSiege commented 1 year ago

Let's say you have 5 prompts for installing a database. These prompts ask for things like host, port, user, password, etc. I'd love for clack to be able to hide/remove the last prompt and cleanly display the next prompt. I think that this would allow the console to be cleaner and just show the user what they are currently interacting with/answering.

natemoo-re commented 1 year ago

Could you not do console.clear() after each question is answered?

HypnoticSiege commented 1 year ago

Could you not do console.clear() after each question is answered?

That's very true. Honestly didn't even think of that at the moment 😅 Thanks a lot Nate! :)