Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update node-cli.js

  • Loading branch information...
commit d09c3c3cee1e1895380107158bd353a5c24b757f 1 parent bb8e78f
xkxx authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 node-cli.js
6 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);
};
Please sign in to comment.
Something went wrong with that request. Please try again.