-
Notifications
You must be signed in to change notification settings - Fork 181
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
Externally triggered prompt redraw or write above the prompt #229
Comments
I don't know how to do this! |
See similar topics:
Async/non-blocking input but sync/coherent output. |
+1 I need this too. Looks like https://github.com/Dhole/rustylinez is trying to add this functionality, but didn't compile for me |
Just for reference:
I am not sure but I guess we should give priority to user input for example while doing completion/listing completion candidates. |
Could you please give #235 a try ? |
@gwenn Thanks. I will try that! |
Should work on windows now. $ wineconsole --backend=curses target/x86_64-pc-windows-gnu/debug/examples/external_print.exe |
I've just got a very similar issue: I want asynchronous completion. I don't think that waiting on So what I think I'm going to do is:
The problem is to update hint on (3). While #235 helps there if I also print a line into the external printer that line will bother users. We can probably apply #235 which sets up some async infrastructure, and then add another pipe to signal refresh. Alternatively, we can introduce some simple signal to refresh instead of #235, and use that as a basis for the external printer. |
Are there any updates on async and/or printing while readlining? |
In the master branch, there has been support added for printing while reading, see example. On my terminal, this appears to be buggy yet, so I filed a bug report. A longer thread on URLO: Text-mode (terminal) application with asynchronous input/output. |
Version 10.0.0 released. |
Hi,
I really struggled with the title for this issue - so let me describe what I need:
I want to write a console application that provide s some kind of command line that is always present at the bottom of the terminal. The text above this is updated from events happening somewhere else and have no influence on the prompt.
Currently the
readline
blocks and I haven't found a way to kind of interrupt that and print some lines and resume the input operation. Is that possible with rustyline?I got this working with
linefeed
that allows to clone a handle to the prompter that implements write and internally synchronises writing to stdout. A example is here.For sure this topics gets complicated when it comes to paged display of the history etc...
Did this topic already raise in the past and if yes - what's the conclusion?
Thanks,
flxo
The text was updated successfully, but these errors were encountered: