aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tbi/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tbi/win.c')
-rw-r--r--lib/tbi/win.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/tbi/win.c b/lib/tbi/win.c
index f3f25a3..172f9a9 100644
--- a/lib/tbi/win.c
+++ b/lib/tbi/win.c
@@ -188,6 +188,33 @@ BOOLEAN mvwvline(struct window *w, INT32 x, INT32 y, CHAR16 ch, INT32 n)
return TRUE;
}
+UINTN EFIAPI wprintf(struct window *w, CONST CHAR16 *fmt, ...)
+{
+ VA_LIST arg;
+ UINTN retval;
+
+ VA_START(arg, fmt);
+ retval = wvprintf(w, fmt, arg);
+ VA_END(arg);
+ return retval;
+}
+
+UINTN EFIAPI mvwprintf(struct window *w, INT32 x, INT32 y, CONST CHAR16 *fmt, ...)
+{
+ VA_LIST arg;
+ UINTN retval;
+ BOOLEAN moved;
+
+ moved = wmove(w, x, y);
+ if(moved == FALSE)
+ return 0;
+
+ VA_START(arg, fmt);
+ retval = wvprintf(w, fmt, arg);
+ VA_END(arg);
+ return retval;
+}
+
UINTN EFIAPI wvprintf(struct window *w, CONST CHAR16 *fmt, VA_LIST args)
{
INT32 x, y;