aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-10-24 18:26:49 +0000
committerJoursoir <chat@joursoir.net>2021-10-24 18:26:49 +0000
commita7a35dde7325d9c3c42f45e4c56c2235a2abf19c (patch)
treead3a28f9963f29e0e071a7dea4187911e4a3ab78
parent79e990add09938e91be560869157ef77edf4df58 (diff)
downloadufm-a7a35dde7325d9c3c42f45e4c56c2235a2abf19c.tar.gz
ufm-a7a35dde7325d9c3c42f45e4c56c2235a2abf19c.tar.bz2
ufm-a7a35dde7325d9c3c42f45e4c56c2235a2abf19c.zip
tbi/screen: add attributes to support color
-rw-r--r--lib/tbi/screen.c1
-rw-r--r--lib/tbi/screen.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/tbi/screen.c b/lib/tbi/screen.c
index 7eb9ac2..ae4f2be 100644
--- a/lib/tbi/screen.c
+++ b/lib/tbi/screen.c
@@ -23,6 +23,7 @@ struct screen *prepare_screen(VOID)
&(scr->columns),
&(scr->lines)
);
+ scr->attr = gST->ConOut->Mode->Attribute;
return scr;
}
diff --git a/lib/tbi/screen.h b/lib/tbi/screen.h
index ae25640..cff98a8 100644
--- a/lib/tbi/screen.h
+++ b/lib/tbi/screen.h
@@ -9,6 +9,7 @@ struct screen
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *stdout;
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *stderr;
UINTN columns, lines; // current screen size
+ INT32 attr; // main screen attributes
};
/*