Closed jstrika closed 7 years ago
You can update the delimiter using
vorpal.ui.delimiter('delimiter');
If you want to update it on Enter press you can add a keypress
listener to process.stdin
:
process.stdin.on('keypress', (_, key) => {
if (key && key.name === 'return') {
vorpal.ui.delimiter(newValue);
}
});
Great, works as advertised.
Thanks!
Hi,
It might be one of the questions already asked, but could not find the answer.
How to capture dialog without any arguments? I tried with parse and catch, but its not triggered on event without any arguments.
Why I need it? I'm using delimiter to represent the status of my app, which can also be changed using web interface. So I would like to refresh prompt on RETURN