bright grey == regular white.

This commit is contained in:
Christopher Jeffrey 2015-05-01 01:29:37 -07:00
parent 0506f5fea2
commit 0b5b04c739
2 changed files with 13 additions and 1 deletions

View File

@ -251,7 +251,11 @@ var colorNames = exports.colorNames = {
brightwhite: 15,
// alternate spellings
grey: 8,
gray: 8
gray: 8,
lightgrey: 7,
lightgray: 7,
brightgrey: 7,
brightgray: 7
};
exports.convert = function(color) {

View File

@ -2381,6 +2381,10 @@ Program.prototype._attr = function(param, val) {
? '\x1b[39m'
: '\x1b[36m';
case 'white fg':
case 'light grey fg':
case 'light gray fg':
case 'bright grey fg':
case 'bright gray fg':
return val === false
? '\x1b[39m'
: '\x1b[37m';
@ -2418,6 +2422,10 @@ Program.prototype._attr = function(param, val) {
? '\x1b[49m'
: '\x1b[46m';
case 'white bg':
case 'light grey bg':
case 'light gray bg':
case 'bright grey bg':
case 'bright gray bg':
return val === false
? '\x1b[49m'
: '\x1b[47m';