reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Is reedline full-duplex? How do I `print_line` while `read_line`ing?

Open vi opened this issue 3 years ago • 2 comments

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?

vi avatar Feb 20 '22 23:02 vi

I'm not sure we've ever considered this use case. It's interesting.

fdncred avatar Feb 21 '22 00:02 fdncred

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. Currently we certainly focus first and foremost to achieve a stable version for use in nushell. But we should come back to that in the future.

sholderbach avatar Feb 26 '22 18:02 sholderbach

Hi all! Due to my need for an external printer,I made a very basic ExternalPrinter as an optional feature. You can take a look: https://github.com/GrxE/reedline. Do you want me to make a PR?

GrxE avatar Aug 24 '22 08:08 GrxE

Awesome @GrxE, we would be happy to take a look!

sholderbach avatar Aug 24 '22 08:08 sholderbach

MVP landed in #467.

sholderbach avatar Sep 14 '22 20:09 sholderbach