mikaelmello / inquire

A Rust library for building interactive prompts
https://docs.rs/inquire
MIT License
1.71k stars 72 forks source link

Render issue using the `console` backend #228

Closed maospr closed 3 months ago

maospr commented 4 months ago

Describe the bug When using inquire with the console backend to present a select, the select options disappear from screen upon interaction (typing, arrow down). But the options are still there. Making a now invisible selection still yields the right result. Just the rendering of options is gone.

Using the termion & crossterm backends still work fine.

To Reproduce Switch to the console backend:

[dependencies]
inquire = { version = "0.7.0", default-features = false, features = [ "console" ] }

Run the cli tool.

Expected behavior I expected to see a change in selection upon pressing navigating (up/down) or a change of options when filtering.

Screenshots Left: console, Right: termion image

And output result: image

Desktop (please complete the following information):

Additional context Version 0.6.2 of inquire still worked fine with the console backend. Sample project demonstrating this behavior: https://github.com/maospr/inquire-render-issue

mikaelmello commented 3 months ago

Thanks for the report, fixing it!

mikaelmello commented 3 months ago

Released in v0.7.1