disable * padding for now.

This commit is contained in:
Christopher Jeffrey 2015-08-06 00:03:59 -07:00
parent 64072411bb
commit 45b180174f
1 changed files with 5 additions and 3 deletions

View File

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