Open sgtlambda opened 8 years ago
How should the two processes be launched? magic-new-thing "hub clone sindresorhus/module-requests" "hub clone sindresorhus/np"
?
Maybe sorta exists but seems a little heavy: https://github.com/arjunmehta/node-columns
Maybe mux(cmd1.stdout, cmd2.stdout)
creates a new stream that injects all the escape codes necessary to print in columns and then presumably gets piped to stdout?
So word of the wise: don't use ANSI escapes. Use ncurses
bindings.
@sgtlambda tThere is also https://github.com/arjunmehta/multiview that seems to fit with your needs...
Say we are running two processes concurrently, and we want to display the stdout streams of both processes in near(*) realtime. A separator symbol (as wel as other settings such as whether to enable line-wrapping) should be configurable.
(*) Some form of a buffer / "debounce" system would be necessary to ensure the side-by-side display of the two streams is optimally efficient and as little "empty lines" as possible are persisted, perhaps
log-update
could be used somehow.