From a5f15c8e9db0dc8e6a782392b4ed91ccee3eff98 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 2 Nov 2021 11:42:36 +0300 Subject: tbi/win: make front-end routines wprintf(), mvwprintf() --- lib/tbi/win.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'lib/tbi/win.h') diff --git a/lib/tbi/win.h b/lib/tbi/win.h index 18f0153..3c42538 100644 --- a/lib/tbi/win.h +++ b/lib/tbi/win.h @@ -133,6 +133,34 @@ BOOLEAN mvwhline(struct window *w, INT32 x, INT32 y, CHAR16 ch, INT32 n); */ BOOLEAN mvwvline(struct window *w, INT32 x, INT32 y, CHAR16 ch, INT32 n); +/* + * Prints formatted output on the cursor coordinates + * + * w: the window on which to operate + * fmt: a null-terminated unicode format string + * ...: variable arguments list whose contents are accessed based on the + fmt string specified by FormatString + * + * return: the number of unicode chars in the produced output buffer + not including the null-terminator +*/ +UINTN EFIAPI wprintf(struct window *w, CONST CHAR16 *fmt, ...); + +/* + * Moves to specified coordinates, prints formatted output + * + * w: the window on which to operate + * x: the X(column) coordinate to move + * y: the Y(row) coordinate to move + * fmt: a null-terminated unicode format string + * ...: variable arguments list whose contents are accessed based on the + fmt string specified by FormatString + * + * return: the number of unicode chars in the produced output buffer + not including the null-terminator +*/ +UINTN EFIAPI mvwprintf(struct window *w, INT32 x, INT32 y, CONST CHAR16 *fmt, ...); + /* * Prints output based on a null-terminated unicode format string and a arguments list -- cgit v1.2.3-18-g5258