When setting the delimiter via vorpal.delimiter('foo')
, it does not update immediately, but waits until a command was submitted.
I'd like to update the delimiter on receiving a keypress event. Is there any way to force the visual change?
As you stated, vorpal.ui.delimiter
will induce a temporary change in the delimiter. For a permanent change that redraws right away, do this:
vorpal.delimiter('foo');
vorpal.ui.refresh();