projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A step towards validation.
[super-star-trek.git]
/
conio.c
diff --git
a/conio.c
b/conio.c
index 95e8a78c81085bdd1f1aa5483e352c719915e0a6..27c38c3842786bcbe93d2aeb9134a649e4fc9bc4 100644
(file)
--- a/
conio.c
+++ b/
conio.c
@@
-133,10
+133,13
@@
void clreol (void)
}
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, ... )
@@
-147,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);
}
@@
-218,7
+226,7
@@
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 */
+/* address cu
r
sor -- OK for this to be a no-op in TTY mode */
{
#ifdef SERGEEV
y--;
{
#ifdef SERGEEV
y--;