aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu/libmenu
diff options
context:
space:
mode:
Diffstat (limited to 'com32/cmenu/libmenu')
-rw-r--r--com32/cmenu/libmenu/com32io.c10
-rw-r--r--com32/cmenu/libmenu/com32io.h5
2 files changed, 11 insertions, 4 deletions
diff --git a/com32/cmenu/libmenu/com32io.c b/com32/cmenu/libmenu/com32io.c
index f1ed17da..92344da9 100644
--- a/com32/cmenu/libmenu/com32io.c
+++ b/com32/cmenu/libmenu/com32io.c
@@ -18,7 +18,15 @@
com32sys_t inreg, outreg; // Global register sets for use
-static void cprint_vga2ansi(char chr, char attr)
+/**
+ * cprint_vga2ansi - given a VGA attribute, print a character
+ * @chr: character to print
+ * @attr: vga attribute
+ *
+ * Convert the VGA attribute @attr to an ANSI escape sequence and
+ * print it.
+ **/
+static void cprint_vga2ansi(const char chr, const char attr)
{
static const char ansi_char[8] = "04261537";
static uint8_t last_attr = 0x07;
diff --git a/com32/cmenu/libmenu/com32io.h b/com32/cmenu/libmenu/com32io.h
index 54593328..8fb32306 100644
--- a/com32/cmenu/libmenu/com32io.h
+++ b/com32/cmenu/libmenu/com32io.h
@@ -22,10 +22,9 @@
#define CSI "\e["
-/* Beep: "" are required, not '' */
-static inline beep()
+static inline void beep(void)
{
- return fputs("\007", stdout);
+ fputs("\007", stdout);
}
/* BIOS Assisted output routines */