Radio button in terminal

#1

Hey there,

I am wondering if there would be a crate which would allow me to do something like this: https://www.npmjs.com/package/prompt-radio

I found https://crates.rs/crates/ask though it’s only for multiple choice question, I was wondering if something with radio buttons existed…

I think it would be a cool crate, if it doesn’t exist yet.

0 Likes

#2

Cursive seems to be able to do this (as well as almost any other kind of terminal based input tomfoolery you could think of).

Example here: https://github.com/gyscos/Cursive/blob/master/examples/radio.rs

0 Likes

#3

There’s quest (written partly by me) but it’s very basic stuff.

0 Likes

#4

One more to the list: dialoguer

0 Likes