Shrink Cell to its prior size by using bitfields.
This commit is contained in:
@@ -89,9 +89,9 @@ namespace Terminal {
|
|||||||
typedef std::string content_type; /* can be std::string, std::vector<uint8_t>, or __gnu_cxx::__vstring */
|
typedef std::string content_type; /* can be std::string, std::vector<uint8_t>, or __gnu_cxx::__vstring */
|
||||||
content_type contents;
|
content_type contents;
|
||||||
Renditions renditions;
|
Renditions renditions;
|
||||||
uint8_t width;
|
unsigned int width : 2;
|
||||||
bool fallback; /* first character is combining character */
|
unsigned int fallback : 1; /* first character is combining character */
|
||||||
bool wrap;
|
unsigned int wrap : 1;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Cell( color_type background_color );
|
Cell( color_type background_color );
|
||||||
|
|||||||
Reference in New Issue
Block a user