console-rs / dialoguer

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

Cursor disappears after using Select #283

Closed francisdb closed 11 months ago

francisdb commented 11 months 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 11 months ago

Duplicate of #188