console-rs / dialoguer

Rust utility library for nice command line prompts and similar things
MIT License
1.33k stars 142 forks source link

Cursor disappears after using Select #283

Closed francisdb closed 1 year ago

francisdb commented 1 year ago

dialoguer = "0.11.0"

After showing a select to the user and exiting the application the cursor is no longer visible. I have to do a console reset to fix this.

I think this was introduced in latest release.

Select::with_theme(&ColorfulTheme::default())
            .with_prompt("Select a table to launch")
            .default(selection_opt.unwrap_or(0))
            .items(&selections[..])
            .interact_opt()
            .unwrap();
pksunkara commented 1 year ago

Duplicate of #188