1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:47:35 +00:00

Get nyancat nyanning in Serenity.

I found a cute program that renders an animated nyancat in the terminal.
This patch adds enough hackery to get it working correctly. :^)
This commit is contained in:
Andreas Kling 2019-02-03 16:11:28 +01:00
parent 3944c00f23
commit dddd0e7b03
15 changed files with 341 additions and 64 deletions

View file

@ -63,8 +63,8 @@ private:
background_color = 0;
//bold = false;
}
unsigned foreground_color : 4;
unsigned background_color : 4;
byte foreground_color;
byte background_color;
//bool bold : 1;
bool operator==(const Attribute& other) const
{
@ -75,7 +75,7 @@ private:
struct Line {
explicit Line(word columns);
~Line();
void clear();
void clear(Attribute);
bool has_only_one_background_color() const;
byte* characters { nullptr };
Attribute* attributes { nullptr };
@ -98,8 +98,6 @@ private:
Attribute m_current_attribute;
Attribute& attribute_at(word row, word column);
void execute_escape_sequence(byte final);
void execute_xterm_command();