mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
Terminal: Reallocate kept lines when resizing the terminal.
Otherwise we end up with garbage text when making the window bigger.
This commit is contained in:
parent
e8f35ef311
commit
6e4f0b3cc5
2 changed files with 27 additions and 12 deletions
|
@ -127,10 +127,11 @@ private:
|
|||
~Line();
|
||||
void clear(Attribute);
|
||||
bool has_only_one_background_color() const;
|
||||
void set_length(word);
|
||||
byte* characters { nullptr };
|
||||
Attribute* attributes { nullptr };
|
||||
bool dirty { false };
|
||||
word length { 0 };
|
||||
word m_length { 0 };
|
||||
};
|
||||
Line& line(size_t index)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue