Open grunweg opened 2 years ago
I've played with this a bit and have a theory for the bug. I think the issue is that my prompt string has multiple lines: All lines but the first line get printed to the terminal. Taking a string with three lines results in the last two lines being printed twice.
Thanks for this crate, by the way. I could insert a simple terminal prompt without knowing too much about terminals!
Steps to reproduce. Take this small test programm.
cargo r
Expected result The terminal output looks like this:
Actual result The prompt is printed twice, resulting in output like this.
Meta. Tested on both version 0.9 and 0.8 of dialoguer.