You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
Is there a way to use tui-rs to create a sort of "heads up display" around my existing terminal command line prompt?
For instance, I should be able to type standard unix commands, access environment variables, etc, all from a typical user input that looks just like a terminal, but then in the upper sections of the window there would be TUI widgets that perform auto-complete suggestions and other quality of life features to help the user formulate the commands they are trying to run.
For instance, let's say my hypothetical tui-rs application knows about a binary called "desert_locator". When you start typing a desert_locator command, it preempts your input providing suggestions like the following:
_____________________________
|Suggestions (click to autocomplete):
| tapioca
| cookie
|____________________________
$user: desert_locator tap <-- here is a conventional command line prompt (run ls, grep, etc...)
The key answer I'm looking for: Does this library allow me to still let the user interact with their existing shell/environment in a non-intrusive way? Or would I have to emulate a terminal, passing all user input into a subprocess from Rust and then handle all stdout/stderr?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to use tui-rs to create a sort of "heads up display" around my existing terminal command line prompt?
For instance, I should be able to type standard unix commands, access environment variables, etc, all from a typical user input that looks just like a terminal, but then in the upper sections of the window there would be TUI widgets that perform auto-complete suggestions and other quality of life features to help the user formulate the commands they are trying to run.
For instance, let's say my hypothetical tui-rs application knows about a binary called "desert_locator". When you start typing a
desert_locator
command, it preempts your input providing suggestions like the following:The key answer I'm looking for: Does this library allow me to still let the user interact with their existing shell/environment in a non-intrusive way? Or would I have to emulate a terminal, passing all user input into a subprocess from Rust and then handle all stdout/stderr?
Beta Was this translation helpful? Give feedback.
All reactions