aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu/libmenu/com32io.h
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-04 16:59:53 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-04 16:59:53 -0700
commit3f86e5ec0954aa2b2da60f007705cbe996820fc4 (patch)
tree8ddad87b56195539d3bd7a59a1861251b6db477e /com32/cmenu/libmenu/com32io.h
parent4873366ee31786f10381427c5522543a82a9e2ab (diff)
parent1c50caaf9086cedc0af481094045f32a8f63e0a1 (diff)
downloadsyslinux-3f86e5ec0954aa2b2da60f007705cbe996820fc4.tar.gz
syslinux-3f86e5ec0954aa2b2da60f007705cbe996820fc4.tar.xz
syslinux-3f86e5ec0954aa2b2da60f007705cbe996820fc4.zip
Merge commit 'origin/libansi' into cmenu-video
Diffstat (limited to 'com32/cmenu/libmenu/com32io.h')
-rw-r--r--com32/cmenu/libmenu/com32io.h62
1 files changed, 1 insertions, 61 deletions
diff --git a/com32/cmenu/libmenu/com32io.h b/com32/cmenu/libmenu/com32io.h
index 91324d77..6a1b670b 100644
--- a/com32/cmenu/libmenu/com32io.h
+++ b/com32/cmenu/libmenu/com32io.h
@@ -15,59 +15,14 @@
#include <com32.h>
#include <stdio.h>
+#include <libansi.h>
#ifndef NULL
#define NULL ((void *)0)
#endif
-#define CSI "\e["
-
-static inline void beep(void)
-{
- fputs("\007", stdout);
-}
-
/* BIOS Assisted output routines */
-// Print a C str (NUL-terminated) respecting the left edge of window
-// i.e. \n in str will move cursor to column left
-// Print a C str (NUL-terminated)
-
-void csprint(const char *, const char);
-
-//static inline void cswprint(const char *str, const char attr)
-//{
-// csprint(str, attr);
-//}
-
-void cprint(const char, const char, unsigned int);
-
-static inline void putch(const char x, char attr)
-{
- cprint(x, attr, 1);
-}
-
-void clearwindow(const char, const char, const char, const char,
- const char, const char);
-
-/*
- * cls - clear and initialize 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)
-{
- fputs("\033e\033%@\033)0\033(B\1#0\033[?25l\033[2J", stdout);
-}
-
-static inline void gotoxy(const char row, const char col)
-{
- printf(CSI "%d;%dH", row + 1, col + 1);
-}
-
void getpos(char *row, char *col, char page);
char inputc(char *scancode); // Return ASCII char by val, and scancode by reference
@@ -78,16 +33,6 @@ void getcursorshape(char *start, char *end); // Get shape for current page
// Get char displayed at current position in specified page
unsigned char getcharat(char page);
-static inline void cursoroff(void)
-{ /* Turns off cursor */
- setcursorshape(32, 33);
-}
-
-static inline void cursoron(void)
-{ /* Turns on cursor */
- setcursorshape(6, 7);
-}
-
static inline unsigned char readbiosb(unsigned int ofs)
{
return *((unsigned char *)MK_PTR(0, ofs));
@@ -100,11 +45,6 @@ static inline char getshiftflags(void)
void scrollupwindow(char top, char left, char bot, char right, char attr, char numlines); //Scroll up given window
-static inline void scrollup(void) //Scroll up display screen by one line
-{
- printf(CSI "S");
-}
-
void setvideomode(char mode); // Set the video mode.
static inline char getvideomode(void) // Get the current video mode