Permalink
Browse files

Disable posterization and rely solely on TERM to tell remote end abou…

…t colors

(should help #155 github issue)
  • Loading branch information...
1 parent 0e9be1b commit a4221d17a45244de7f7a39049e0b295016817325 @keithw keithw committed Apr 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/terminal/terminaldisplayinit.cc
@@ -70,13 +70,16 @@ Display::Display( bool use_environment )
has_bce = false;
}
- /* check colors */
+ /* posterization disabled because server now only advertises
+ xterm-256color when client has colors = 256 */
+ /*
char colors_name[] = "colors";
int color_val = tigetnum( colors_name );
if ( color_val == -2 ) {
throw std::string( "Invalid terminfo numeric capability " ) + colors_name;
} else if ( color_val < 256 ) {
posterize_colors = true;
}
+ */
}
}

0 comments on commit a4221d1

Please sign in to comment.