Removed color pair restrictions.

Sane color pairs are the application's responsibility. Widely-used
terminals such as PuTTY and gnome-terminal do not restrict colors.
This commit is contained in:
Jay Weisskopf 2012-01-01 02:01:25 -06:00 committed by Marc Singer
parent 3dae501f22
commit 1cef2b0ef2
3 changed files with 0 additions and 42 deletions

View file

@ -3280,20 +3280,6 @@ VT100.prototype.updateStyle = function() {
if (this.attr & 0x1000 /* ATTR_BLINK */) { if (this.attr & 0x1000 /* ATTR_BLINK */) {
bg ^= 8; bg ^= 8;
} }
// Make some readability enhancements. Most notably, disallow identical
// background and foreground colors.
if (bg == fg) {
if ((fg ^= 8) == 7) {
fg = 8;
}
}
// And disallow bright colors on a light-grey background.
if (bg == 7 && fg >= 8) {
if ((fg -= 8) == 7) {
fg = 8;
}
}
this.color = 'ansi' + fg + ' bgAnsi' + bg; this.color = 'ansi' + fg + ' bgAnsi' + bg;
}; };

View file

@ -3280,20 +3280,6 @@ VT100.prototype.updateStyle = function() {
if (this.attr & 0x1000 /* ATTR_BLINK */) { if (this.attr & 0x1000 /* ATTR_BLINK */) {
bg ^= 8; bg ^= 8;
} }
// Make some readability enhancements. Most notably, disallow identical
// background and foreground colors.
if (bg == fg) {
if ((fg ^= 8) == 7) {
fg = 8;
}
}
// And disallow bright colors on a light-grey background.
if (bg == 7 && fg >= 8) {
if ((fg -= 8) == 7) {
fg = 8;
}
}
this.color = 'ansi' + fg + ' bgAnsi' + bg; this.color = 'ansi' + fg + ' bgAnsi' + bg;
}; };

View file

@ -3280,20 +3280,6 @@ VT100.prototype.updateStyle = function() {
if (this.attr & ATTR_BLINK) { if (this.attr & ATTR_BLINK) {
bg ^= 8; bg ^= 8;
} }
// Make some readability enhancements. Most notably, disallow identical
// background and foreground colors.
if (bg == fg) {
if ((fg ^= 8) == 7) {
fg = 8;
}
}
// And disallow bright colors on a light-grey background.
if (bg == 7 && fg >= 8) {
if ((fg -= 8) == 7) {
fg = 8;
}
}
this.color = 'ansi' + fg + ' bgAnsi' + bg; this.color = 'ansi' + fg + ' bgAnsi' + bg;
}; };