From 45b180174fcf260b0576c5598fbe6fc9bbfd51a4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 6 Aug 2015 00:03:59 -0700 Subject: [PATCH] disable * padding for now. --- lib/tput.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/tput.js b/lib/tput.js index 9b07fb9..cb9fedc 100644 --- a/lib/tput.js +++ b/lib/tput.js @@ -1204,9 +1204,11 @@ Tput.prototype._print = function(code, print, done) { // advisory if the device has the xon capability; it is used for cost // computation but does not trigger delays. if (~suffix.indexOf('*')) { - if (affect = /\x1b\[(\d+)[LM]/.exec(part)) { - amount *= +affect[1]; - } + // XXX Disable this for now. + amount = amount; + // if (affect = /\x1b\[(\d+)[LM]/.exec(part)) { + // amount *= +affect[1]; + // } // The above is a huge workaround. In reality, we need to compile // `_print` into the string functions and check the cap name and // params.