Posterize to 8 colors when outer terminal does not support 256 colors

Fixes #58 github issue.
This commit is contained in:
Keith Winstein
2012-03-16 17:42:36 -04:00
parent bdb0ecc2fd
commit 170bc8366a
6 changed files with 96 additions and 7 deletions
+3
View File
@@ -158,6 +158,9 @@ void STMClient::output_new_frame( void )
/* apply local overlays */
overlays.apply( *new_state );
/* apply any mutations */
display.downgrade( *new_state );
/* calculate minimal difference from where we are */
const string diff( display.new_frame( !repaint_requested,
*local_framebuffer,