StreetStrider/repl.js

Turn off output patching

Closed this issue · 1 comments

If promise is returned, output (stdout) will print promise notice first, then on completing promise it will be overwritten with promise status + value by control codes that moves cursor line back.
It is ok if there is no manual outputting in some intermediate step:

Q.delay(100).then(log);

Last function in chain will return promise as well. So final output will be messed up with log output.

It should turn off patching if output was used manually.

This is solved in v2 thanks to console-ultimate's transformations mechanism.
in a5c6e5e