Skip to content

Commit

Permalink
Use unicode to send escape character to shell instead of octal to wor…
Browse files Browse the repository at this point in the history
…k with strict mode javascript
  • Loading branch information
letharion committed Jan 14, 2013
1 parent 73936c4 commit b73d128
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/debug.js
Expand Up @@ -112,10 +112,10 @@ function debug(name) {
var ms = curr - (prev[name] || curr);
prev[name] = curr;

fmt = ' \033[9' + c + 'm' + name + ' '
+ '\033[3' + c + 'm\033[90m'
+ fmt + '\033[3' + c + 'm'
+ ' +' + humanize(ms) + '\033[0m';
fmt = ' \u001b[9' + c + 'm' + name + ' '
+ '\u001b[3' + c + 'm\u001b[90m'
+ fmt + '\u001b[3' + c + 'm'
+ ' +' + humanize(ms) + '\u001b[0m';

console.error.apply(this, arguments);
}
Expand Down

0 comments on commit b73d128

Please sign in to comment.