-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is reedline full-duplex? How do I print_line
while read_line
ing?
#320
Comments
I'm not sure we've ever considered this use case. It's interesting. |
This idea is similar to #236. There is certainly some interest to be able to have some background process/thread/task printing without disrupting the layout of the prompt. |
Hi all! |
Awesome @GrxE, we would be happy to take a look! |
Addresses #320, #236 * Adding External printer * Made ExternalPrinter as an optional feature. Clippy is happy, test pass, docs added. * ExternalPrinter: prints multiple messages if available, more on error-handling. * Bug(s) fixed. Prints messages. Working example in examples folder. Code formatted, clippyed, tests pass. * Generic ExternalPrinter<T> where T: Display. * Fixed: Works with buffers larger than a line. * Fixed: Works with buffers larger than a line, refactored. * Different approach, seems to look like what is expected. Gives the "illusion" of one line being entered. Needs more testing, could have some off by one errors ;) Co-authored-by: Gregor Engberding <[email protected]>
MVP landed in #467. |
Is a chat-like application an intended use case for Reedline? If no, it should be explicitly documented. If yes, a sample that prints messages from a timer while simultaneously allowing user to edit the command line should be provided.
I don't see this feature in neither of Rust readline crates, it is even absent from a comparison table. It is also absent from Brainstorming Features issue - is it only for user-facing features or also for system ones like support for async or custom file descriptors?
The text was updated successfully, but these errors were encountered: