default fg/bg.

This commit is contained in:
Christopher Jeffrey 2013-06-13 14:58:50 -05:00
parent c70ec71e07
commit aca4fd9833
1 changed files with 6 additions and 0 deletions

View File

@ -433,6 +433,9 @@ Screen.prototype.draw = function(start, end) {
out += '48;5;' + bgColor + ';';
}
}
//else {
// out += '49;';
//}
if (fgColor !== 0x1ff) {
if (fgColor < 16 || (this.tput && this.tput.colors <= 16)) {
@ -447,6 +450,9 @@ Screen.prototype.draw = function(start, end) {
out += '38;5;' + fgColor + ';';
}
}
//else {
// out += '39;';
//}
if (out[out.length-1] === ';') out = out.slice(0, -1);