aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu/libmenu/com32io.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/cmenu/libmenu/com32io.c')
-rw-r--r--com32/cmenu/libmenu/com32io.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/com32/cmenu/libmenu/com32io.c b/com32/cmenu/libmenu/com32io.c
index f59baebb..60789f82 100644
--- a/com32/cmenu/libmenu/com32io.c
+++ b/com32/cmenu/libmenu/com32io.c
@@ -13,6 +13,7 @@
#include <string.h>
#include <com32.h>
#include "com32io.h"
+#include "tui.h"
#include "syslnx.h"
com32sys_t inreg, outreg; // Global register sets for use
@@ -71,6 +72,14 @@ void cprint(char chr, char attr, unsigned int times, char disppage)
cprint_vga2ansi(chr, attr);
}
+void csprint(const char *str, char attr)
+{
+ while (*str) {
+ cprint(*str, attr, 1, 0);
+ str++;
+ }
+}
+
void setdisppage(char num) // Set the display page to specified number
{
REG_AH(inreg) = 0x05;