diff --git a/lib/tput.js b/lib/tput.js index aea1601..8dea4b5 100644 --- a/lib/tput.js +++ b/lib/tput.js @@ -778,7 +778,11 @@ Tput.prototype._compile = function(val) { } }; +Tput.prototype._print = Tput.prototype._parsePadding = function(code, print, done) { + var print = print || write + , done = done || noop; + if (!this.padding) { print(code); return done(); @@ -970,6 +974,10 @@ function merge(a, b) { return a; } +function write(data) { + return process.stdout.write(data); +} + /** * sprintf * http://www.cplusplus.com/reference/cstdio/printf/