projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation fixes.
[super-star-trek.git]
/
conio.c
diff --git
a/conio.c
b/conio.c
index d603349ad0934eb705ad4da2245c8fd5105bb520..27c38c3842786bcbe93d2aeb9134a649e4fc9bc4 100644
(file)
--- a/
conio.c
+++ b/
conio.c
@@
-124,16
+124,22
@@
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)
+/* clear screen -- can be a no-op in tty mode */
{
{
+#ifdef SERGEEV
wclear(conio_scr);
wmove(conio_scr,0,0);
wrefresh(conio_scr);
wclear(conio_scr);
wmove(conio_scr,0,0);
wrefresh(conio_scr);
+#endif /* SERGEEV */
}
int cprintf (char *format, ... )
}
int cprintf (char *format, ... )
@@
-144,8
+150,13
@@
int cprintf (char *format, ... )
va_start(argp,format);
vsprintf(buffer,format,argp);
va_end(argp);
va_start(argp,format);
vsprintf(buffer,format,argp);
va_end(argp);
+
+#ifdef SERGEEV
i=waddstr(conio_scr,buffer);
wrefresh(conio_scr);
i=waddstr(conio_scr,buffer);
wrefresh(conio_scr);
+#else
+ i=printf(buffer);
+#endif /* SERGEEV */
return(i);
}
return(i);
}
@@
-215,17
+226,22
@@
void gettextinfo(struct text_info *inforec)
}
void gotoxy (int x, int y)
}
void gotoxy (int x, int y)
+/* address cursor -- 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)