Skip to content

Commit

Permalink
disable * padding for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Aug 6, 2015
1 parent 6407241 commit 45b1801
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/tput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 45b1801

Please sign in to comment.