readline icon indicating copy to clipboard operation
readline copied to clipboard

Prompt doesn't update mid-command

Open jD91mZM2 opened this issue 8 years ago • 0 comments

Hey!
I'll start with giving you a context:

Imagine a program which takes newlines, with the prompt "foobar".
foobar> this is a te
but... just as I start typing, there is some event trigger. Now I get

foobar> this is a te
notification!

.

BUT! Once I start typing, readline is super clever, and fill in the previous input!

foobar> this is a te
notification!
foobar> this is a tes

.
That's all good.
... but if I change the prompt, it does not update however.
it stays foobar until the next input.

foobar> this is a te
notification!
changed prompt to "foo"
foobar> this is a tes

I'd love a way to update this mid-command! =)

jD91mZM2 avatar Mar 07 '17 18:03 jD91mZM2