aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/tbi
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-11-27 12:15:39 +0300
committerJoursoir <chat@joursoir.net>2021-11-27 12:15:39 +0300
commitc449ba91eed64e2862cb1c1ac0627a4d5a7b511f (patch)
tree2404ba7ce3809134fd9dee4a1846f9d6955849c8 /Library/UefiShellUfmCommandLib/tbi
parent0577f53ae0a452ad01c8872e263e05bae5dc296d (diff)
downloadufm-c449ba91eed64e2862cb1c1ac0627a4d5a7b511f.tar.gz
ufm-c449ba91eed64e2862cb1c1ac0627a4d5a7b511f.tar.bz2
ufm-c449ba91eed64e2862cb1c1ac0627a4d5a7b511f.zip
tbi/screen: make screen_clear()
Diffstat (limited to 'Library/UefiShellUfmCommandLib/tbi')
-rw-r--r--Library/UefiShellUfmCommandLib/tbi/screen.c7
-rw-r--r--Library/UefiShellUfmCommandLib/tbi/screen.h9
2 files changed, 16 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/tbi/screen.c b/Library/UefiShellUfmCommandLib/tbi/screen.c
index ae4f2be..daca9c9 100644
--- a/Library/UefiShellUfmCommandLib/tbi/screen.c
+++ b/Library/UefiShellUfmCommandLib/tbi/screen.c
@@ -34,3 +34,10 @@ VOID forget_screen(struct screen *scr)
FreePool(scr);
}
+
+VOID screen_clear(struct screen *scr)
+{
+ ASSERT(scr != NULL);
+
+ scr->stdout->ClearScreen(scr->stdout);
+}
diff --git a/Library/UefiShellUfmCommandLib/tbi/screen.h b/Library/UefiShellUfmCommandLib/tbi/screen.h
index e97bf64..fb0cd15 100644
--- a/Library/UefiShellUfmCommandLib/tbi/screen.h
+++ b/Library/UefiShellUfmCommandLib/tbi/screen.h
@@ -33,4 +33,13 @@ struct screen *prepare_screen(VOID);
*/
VOID forget_screen(struct screen *scr);
+/*
+ * Clears the screen
+ *
+ * scr: the screen on which to operate
+ *
+ * return: VOID
+*/
+VOID screen_clear(struct screen *scr);
+
#endif /* UFM_TBI_SCREEN_H */