X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=conio.c;h=27c38c3842786bcbe93d2aeb9134a649e4fc9bc4;hb=226428aac31ae604029f55c3c2fb7fff59e10009;hp=95e8a78c81085bdd1f1aa5483e352c719915e0a6;hpb=a96a31750d67dfc0d4636aae4040155f78d5eda8;p=super-star-trek.git diff --git a/conio.c b/conio.c index 95e8a78..27c38c3 100644 --- a/conio.c +++ b/conio.c @@ -133,10 +133,13 @@ void clreol (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); +#endif /* SERGEEV */ } int cprintf (char *format, ... ) @@ -147,8 +150,13 @@ int cprintf (char *format, ... ) va_start(argp,format); vsprintf(buffer,format,argp); va_end(argp); + +#ifdef SERGEEV i=waddstr(conio_scr,buffer); wrefresh(conio_scr); +#else + i=printf(buffer); +#endif /* SERGEEV */ return(i); } @@ -218,7 +226,7 @@ void gettextinfo(struct text_info *inforec) } void gotoxy (int x, int y) -/* address cusor -- OK for this to be a no-op in TTY mode */ +/* address cursor -- OK for this to be a no-op in TTY mode */ { #ifdef SERGEEV y--;