path: root/com32/cmenu/libmenu/tui.h
diff options
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-30 17:06:30 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-01 11:43:39 -0700
commit9eacdefabc99e6c98cc9373ee04dce23dc6d49bc (patch)
tree319ea49256dde1e4b33c8b96c864e59bdbe1d73b /com32/cmenu/libmenu/tui.h
parent0ca265e1a55ddfda946efdd49277803b2c0beacb (diff)
cmenu: remove multi pages support
The cmenu used to display the help on a separate page. Since we can't have multi pages on the serial line, get rid of them completely. This has a fairly big impact as the external cmenu API has changed. adv_menu.tpl and HDT have been patched accordingly. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/cmenu/libmenu/tui.h')
1 files changed, 5 insertions, 21 deletions
diff --git a/com32/cmenu/libmenu/tui.h b/com32/cmenu/libmenu/tui.h
index 54bce86e..c72a41d2 100644
--- a/com32/cmenu/libmenu/tui.h
+++ b/com32/cmenu/libmenu/tui.h
@@ -41,23 +41,7 @@
#define CHABSATTR 15
#define CHRELATTR 14
-void clearwindow(char top, char left, char bot, char right,
- char page, char fillchar, char fillattr);
- * Clears the entire screen
- *
- * Note: when initializing xterm, one has to specify that
- * G1 points to the alternate character set (this is not true
- * by default). Without the initial printf "\033)0", line drawing
- * characters won't be displayed.
- */
-static inline void cls(void)
- return fputs("\033e\033%@\033)0\033(B\1#0\033[?25l\033[2J", stdout);
+#define GETSTRATTR 0x07
// Generic user input,
// password = 0 iff chars echoed on screen
@@ -101,14 +85,14 @@ typedef enum { BOX_SINSIN, BOX_DBLDBL, BOX_SINDBL, BOX_DBLSIN } boxtype;
unsigned char *getboxchars(boxtype bt);
-void drawbox(char top, char left, char bot, char right,
- char page, char attr, boxtype bt);
+void drawbox(const char, const char, const char, const char,
+ const char);
// Draw a horizontal line
// dumb == 1, means just draw the line
// dumb == 0 means check the first and last positions and depending on what is
// currently on the screen make it a LTRT and/or RTLT appropriately.
-void drawhorizline(char top, char left, char right, char page, char attr,
- boxtype bt, char dumb);
+void drawhorizline(const char, const char, const char, const char,
+ const char dumb);