add _print().

This commit is contained in:
Christopher Jeffrey 2013-02-24 12:58:29 -06:00
parent 58d2c383e8
commit 38d3a6445a
1 changed files with 8 additions and 0 deletions

View File

@ -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/