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
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
.
BUT! Once I start typing, readline is super clever, and fill in the previous input!
.
That's all good.
... but if I change the prompt, it does not update however.
it stays
foobar
until the next input.I'd love a way to update this mid-command! =)