Open jeffhuys opened 7 years ago
Vorpal doesn't play well with any other library that attempts to control the terminal. Both libraries add listeners, and then do their own thing.
@dthree I see. Is there any other way to make this work (like only calling blessed.program() when I want to hand the terminal over to blessed)? Or is what I want a lost cause?
Is there a reason you're trying to use both together?
@milesj yes, I want to create a REPL where I create dashboards. So, first I use Vorpal to allow for commands to be parsed. When a user types "create dashboard" or "show dashboard dash1", it hands the terminal over to Blessed, where it can do its thing (show a dynamic dashboard), and when q
is pressed, it hands the terminal back to Vorpal, where other commands can be supplied.
i would like that very very much as well
Using Blessed in conjunction with Vorpal like this:
Causes output like this:
As you can probably tell, every keystroke is sent / read twice, even the "return" key.
My guess is that Blessed attaches their own listener, and emits the event as well? Just a guess, though.
Maybe someone with knowledge of Blessed can help me out?