projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Give names to the windows.
[super-star-trek.git]
/
conio.c
diff --git
a/conio.c
b/conio.c
index 92598140141e2e12633872e123c3c08ab8fa2965..95e8a78c81085bdd1f1aa5483e352c719915e0a6 100644
(file)
--- a/
conio.c
+++ b/
conio.c
@@
-31,6
+31,7
@@
char color_warning=1;
int directvideo;
WINDOW *conio_scr;
int directvideo;
WINDOW *conio_scr;
+#ifdef SERGEEV
/* Some internals... */
static int colortab(int a) /* convert LINUX Color code to DOS-standard */
{
/* Some internals... */
static int colortab(int a) /* convert LINUX Color code to DOS-standard */
{
@@
-46,6
+47,7
@@
static int colortab(int a) /* convert LINUX Color code to DOS-standard */
}
return COLOR_BLACK;
}
}
return COLOR_BLACK;
}
+#endif /* SERGEEV */
static void docolor (int color) /* Set DOS-like text mode colors */
{
static void docolor (int color) /* Set DOS-like text mode colors */
{
@@
-122,9
+124,12
@@
char *cgets (char *str) /* ugly function :-( */
}
void clreol (void)
}
void clreol (void)
+/* clear to end of line -- can be a no-op in tty mode */
{
{
+#ifdef SERGEEV
wclrtoeol(conio_scr);
wrefresh(conio_scr);
wclrtoeol(conio_scr);
wrefresh(conio_scr);
+#endif /* SERGEEV */
}
void clrscr (void)
}
void clrscr (void)
@@
-213,17
+218,22
@@
void gettextinfo(struct text_info *inforec)
}
void gotoxy (int x, int y)
}
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);
y--;
x--;
wmove(conio_scr,y,x);
wrefresh(conio_scr);
+#endif /* SERGEEV */
}
void highvideo (void)
{
}
void highvideo (void)
{
+#ifdef SERGEEV
textcolor(15); /* White */
textbackground(0); /* Black */
textcolor(15); /* White */
textbackground(0); /* Black */
+#endif /* SERGEEV */
}
void insline (void)
}
void insline (void)
@@
-274,11
+284,14
@@
void textbackground (int color)
docolor(color);
}
docolor(color);
}
+
void textcolor (int color)
{
void textcolor (int color)
{
+#ifdef SERGEEV
fgc=color;
color=(bgc*16)+fgc;
docolor(color);
fgc=color;
color=(bgc*16)+fgc;
docolor(color);
+#endif /* SERGEEV */
}
void textmode (int mode)
}
void textmode (int mode)