add _print().
This commit is contained in:
parent
58d2c383e8
commit
38d3a6445a
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue