Automerge feature. (#313)

Add the `automerge` attribute to the Pixel bit field. It controls
whether two pixels must be automerged. Defining this allows two
mergeable characters not to be merged.

This was requested by:
https://github.com/ArthurSonzogni/FTXUI/issues/285
This commit is contained in:
Arthur Sonzogni
2022-01-22 15:38:01 +01:00
committed by GitHub
parent 4267b40a68
commit 6039474a26
5 changed files with 56 additions and 22 deletions

View File

@@ -28,13 +28,15 @@ struct Pixel {
bool dim : 1;
bool inverted : 1;
bool underlined : 1;
bool automerge : 1;
Pixel()
: blink(false),
bold(false),
dim(false),
inverted(false),
underlined(false) {}
underlined(false),
automerge(false) {}
};
/// @brief Define how the Screen's dimensions should look like.