diff options
-rw-r--r-- | lib/tbi/screen.c | 1 | ||||
-rw-r--r-- | lib/tbi/screen.h | 1 |
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 }; /* |