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
+4
View File
@@ -40,6 +40,8 @@ namespace Terminal {
void set_rendition( int num );
std::string sgr( void ) const;
void posterize( void );
bool operator==( const Renditions &x ) const
{
return (bold == x.bold) && (underlined == x.underlined)
@@ -285,6 +287,8 @@ namespace Terminal {
void reset_cell( Cell *c ) { c->reset( ds.get_background_rendition() ); }
void reset_row( Row *r ) { r->reset( ds.get_background_rendition() ); }
void posterize( void );
void ring_bell( void ) { bell_count++; }
unsigned int get_bell_count( void ) const { return bell_count; }