r3bl-org/r3bl-open-core

Replace the use of readline w/ tuify in the demos

Opened this issue · 0 comments

Currently in the r3bl_tui crate (the tui folder of this repo) the examples ask the user for input. When a user runs ./run.nu run, they have to press a number between 0-5.

image

Instead they should be presented w/ a single selection component provided by r3bl_tuify create. This entails:

  • Adding the r3bl_tuify crate as a dependency in tui/Cargo.toml
  • Remove the dependency on reedline from tui/Cargo.toml. Maybe check to see if any other Cargo.toml files in this repo are using reedline and remove them as well.
  • Replacing the use of Reedline code with select_from_list()