int directvideo;
WINDOW *conio_scr;
+#ifdef SERGEEV
/* Some internals... */
static int colortab(int a) /* convert LINUX Color code to DOS-standard */
{
}
return COLOR_BLACK;
}
+#endif /* SERGEEV */
static void docolor (int color) /* Set DOS-like text mode colors */
{
}
void clreol (void)
+/* clear to end of line -- can be a no-op in tty mode */
{
+#ifdef SERGEEV
wclrtoeol(conio_scr);
wrefresh(conio_scr);
+#endif /* SERGEEV */
}
void clrscr (void)
}
void gotoxy (int x, int y)
+/* address cusor -- OK for this to be a no-op in TTY mode */
{
+#ifdef SERGEEV
y--;
x--;
wmove(conio_scr,y,x);
wrefresh(conio_scr);
+#endif /* SERGEEV */
}
void highvideo (void)
{
+#ifdef SERGEEV
textcolor(15); /* White */
textbackground(0); /* Black */
+#endif /* SERGEEV */
}
void insline (void)
docolor(color);
}
+
void textcolor (int color)
{
+#ifdef SERGEEV
fgc=color;
color=(bgc*16)+fgc;
docolor(color);
+#endif /* SERGEEV */
}
void textmode (int mode)