Open Nejat opened 8 years ago
I'm interested in this as well, this question on stack-overflow seems related: http://stackoverflow.com/questions/29848217/how-do-i-redirect-stdout-in-blessed
I believe terminal widget can help you https://github.com/chjj/blessed#terminal-from-box
Yeah I've actually made some progress on this!
I'm interessed in this as well ! @ndelangen did you manage to do this ?
@gouyou88 I'll try and get a repo up as a demo, with what I have, hopefully tonight.
@ndelangen Alright, thanks, no hurry :)
I have managed to come with an acceptable result in my project by using winston as my logger. By using winston as logger, and never using console.log and console.error I can disable the "console" transport when I need to use blessed, and use the events emitted by winston to intercept every log and print them in the box.
AHGH finally found this issue again. Seriously I forgot where it was, and notifications / news was of not help.. Anyway..
This is something of a little side-project I'm doing: https://github.com/ndelangen/jest-dashboard
It's running a TTY terminal in a sidebox in blessed. I'm trying to write a jest + webpack dashboard sort of thing. I hope this helps you.. Cheers!
I am using Inquirer.js to prompt the user with a series of questions.
Inquirer allows you to override it's
stdin
andstdout
with the following code ...Is there a way to do this with a box?
thanks for the advice