aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/tbi/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'Library/UefiShellUfmCommandLib/tbi/win.c')
-rw-r--r--Library/UefiShellUfmCommandLib/tbi/win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/tbi/win.c b/Library/UefiShellUfmCommandLib/tbi/win.c
index 1496808..55171da 100644
--- a/Library/UefiShellUfmCommandLib/tbi/win.c
+++ b/Library/UefiShellUfmCommandLib/tbi/win.c
@@ -58,6 +58,7 @@ struct window *newwin(struct screen *s,
win->width = ncols;
win->height = nlines;
win->cur_attr = s->attr;
+ win->echo = FALSE;
for(y = 0; y < nlines; y++) {
win->text[y] = AllocatePool((ncols + 1) * sizeof(CHAR16));
@@ -114,6 +115,13 @@ VOID wattroff(struct window *w)
w->cur_attr = w->scr->attr;
}
+VOID echo(struct window *w, BOOLEAN state)
+{
+ ASSERT(w != NULL);
+
+ w->echo = state;
+}
+
BOOLEAN wmove(struct window *w, INT32 x, INT32 y)
{
ASSERT(w != NULL);