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:
parent
3944c00f23
commit
dddd0e7b03
15 changed files with 341 additions and 64 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue