1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

Terminal: Add some basic emoji support

This is not as perfect as it is elsewhere in the system, as we cannot
really change how terminal "thinks about" characters and bytes. What
we can do though, and what this commit does, is to *render* emojis, but
make it seem as if they take up all the space, and all the columns their
bytes would take if they were all regular characters.
This commit is contained in:
Sergey Bugaev 2019-09-04 23:51:47 +03:00 committed by Andreas Kling
parent 22e6978c71
commit 6d3f52c4a4
2 changed files with 50 additions and 12 deletions

View file

@ -82,6 +82,8 @@ public:
void clear(Attribute);
bool has_only_one_background_color() const;
void set_length(u16);
StringView text() const { return { characters, m_length }; }
u8* characters { nullptr };
Attribute* attributes { nullptr };
bool dirty { false };