Disable posterization and rely solely on TERM to tell remote end about colors

(should help #155 github issue)
This commit is contained in:
Keith Winstein
2012-04-14 13:46:38 -04:00
parent 0e9be1b471
commit a4221d17a4
+4 -1
View File
@@ -70,7 +70,9 @@ Display::Display( bool use_environment )
has_bce = false; has_bce = false;
} }
/* check colors */ /* posterization disabled because server now only advertises
xterm-256color when client has colors = 256 */
/*
char colors_name[] = "colors"; char colors_name[] = "colors";
int color_val = tigetnum( colors_name ); int color_val = tigetnum( colors_name );
if ( color_val == -2 ) { if ( color_val == -2 ) {
@@ -78,5 +80,6 @@ Display::Display( bool use_environment )
} else if ( color_val < 256 ) { } else if ( color_val < 256 ) {
posterize_colors = true; posterize_colors = true;
} }
*/
} }
} }