mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibVT: Respect the Negative attribute when drawing text
This makes the "reverse video" SGR actually work.
This commit is contained in:
parent
2f3b901f7f
commit
44305ea214
4 changed files with 12 additions and 9 deletions
|
@ -47,6 +47,9 @@ struct Attribute {
|
|||
u32 foreground_color;
|
||||
u32 background_color;
|
||||
|
||||
u32 effective_background_color() const { return flags & Negative ? foreground_color : background_color; }
|
||||
u32 effective_foreground_color() const { return flags & Negative ? background_color : foreground_color; }
|
||||
|
||||
String href;
|
||||
String href_id;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue