summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses/clear.c
diff options
context:
space:
mode:
authorMichael Brown2013-11-28 06:01:29 +0100
committerMichael Brown2013-11-28 06:03:05 +0100
commit7271b5089073d84d74709d3986e1bb32234f1c4d (patch)
tree7cdef75cc1c16c386eceee27c06f39da1cb45f08 /src/hci/mucurses/clear.c
parent[pnm] Add support for PNM images (diff)
downloadipxe-7271b5089073d84d74709d3986e1bb32234f1c4d.tar.gz
ipxe-7271b5089073d84d74709d3986e1bb32234f1c4d.tar.xz
ipxe-7271b5089073d84d74709d3986e1bb32234f1c4d.zip
[mucurses] Use "<ESC>[2J" ANSI escape sequence to clear screen
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/mucurses/clear.c')
-rw-r--r--src/hci/mucurses/clear.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hci/mucurses/clear.c b/src/hci/mucurses/clear.c
index 79b296cf..f5e52ca2 100644
--- a/src/hci/mucurses/clear.c
+++ b/src/hci/mucurses/clear.c
@@ -88,3 +88,13 @@ int werase ( WINDOW *win ) {
wclrtobot( win );
return OK;
}
+
+/**
+ * Completely clear the screen
+ *
+ * @ret rc return status code
+ */
+int erase ( void ) {
+ stdscr->scr->erase( stdscr->scr, stdscr->attrs );
+ return OK;
+}