X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=conio.c;h=95e8a78c81085bdd1f1aa5483e352c719915e0a6;hb=a96a31750d67dfc0d4636aae4040155f78d5eda8;hp=d603349ad0934eb705ad4da2245c8fd5105bb520;hpb=2e65db78c58369f165c7d5c4edc849300a2d7f53;p=super-star-trek.git diff --git a/conio.c b/conio.c index d603349..95e8a78 100644 --- a/conio.c +++ b/conio.c @@ -124,9 +124,12 @@ char *cgets (char *str) /* ugly function :-( */ } 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) @@ -215,17 +218,22 @@ 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 */ { +#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)