Closed mitsuhiko closed 1 year ago
What is the intended way to use dialoguer for non-interactive Term
objects? I would like to test my application by feeding it a Term::read_write_pair
that I run assertions on, but this makes it impossible because it just immediately exits with an error instead of reading from the file.
I think the correct thing to do is to fix this upstream in console
by reading from the read
half of the pair instead of hard-coding Key::Unknown
: https://github.com/console-rs/console/issues/117
Looks like https://github.com/console-rs/console/pull/173 was intended to fix that but hasn't gotten any reviews ...
Fixes #229
Fixes #148
Follows #260