Permalink
Browse files

Update node-cli.js

  • Loading branch information...
1 parent bb8e78f commit d09c3c3cee1e1895380107158bd353a5c24b757f @xkxx xkxx committed Oct 18, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 node-cli.js
View
@@ -37,7 +37,7 @@ function NodeCli () {
};
/**
- * Echo color code, bold is optional
+ * Set colors
*/
this.color = function(color, bold, background) {
bg = (background && this.bgcolors[background]) ? ';'+this.bgcolors[background] : '';
@@ -46,10 +46,10 @@ function NodeCli () {
};
/**
- * Echo color code, bold is optional
+ * Set background color only
*/
this.bgcolor = function(color) {
- this.write('\x1B[0;' + this.bgcolors[color] + 'm');
+ this.write('\x1B[' + this.bgcolors[color] + 'm');
return(this);
};

0 comments on commit d09c3c3

Please sign in to comment.