projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
059e1d8
)
Get rid of clearscreen().
author
Eric S. Raymond
<esr@thyrsus.com>
Thu, 3 Feb 2005 21:56:24 +0000
(21:56 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Thu, 3 Feb 2005 21:56:24 +0000
(21:56 +0000)
io.c
patch
|
blob
|
history
sst.h
patch
|
blob
|
history
diff --git
a/io.c
b/io.c
index ec30ccffc676959c9c59bd9cfe7dacf4e58fdb17..309069318356ed571d6bd5f7c8f31280b9ba6590 100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-81,25
+81,6
@@
void ioend(void) {
outro(0);
}
outro(0);
}
-void clearscreen(void) {
- /* Somehow we need to clear the screen */
-#ifdef __BORLANDC__
- extern void clrscr(void);
- clrscr();
-#else
- if (curses) {
- wclear(stdscr);
- wrefresh(stdscr);
- } else {
- // proutn("\033[2J"); /* Hope for an ANSI display */
- /* much more in that old-TTY spirit to just throw linefeeds */
- int i;
- for (i = 0; i < screenheight; i++)
- putchar('\n');
- }
-#endif
-}
-
void waitfor(void) {
/* wait for user action -- OK to do nothing if on a TTY */
#ifdef SERGEEV
void waitfor(void) {
/* wait for user action -- OK to do nothing if on a TTY */
#ifdef SERGEEV
@@
-140,7
+121,10
@@
void pause_game(int i) {
proutn(prompt);
fgets(buf, sizeof(buf), stdin);
if (i != 0) {
proutn(prompt);
fgets(buf, sizeof(buf), stdin);
if (i != 0) {
- clearscreen();
+ /* much more in that old-TTY spirit to throw linefeeds */
+ int j;
+ for (j = 0; j < screenheight; j++)
+ putchar('\n');
}
linecount = 0;
}
}
linecount = 0;
}
diff --git
a/sst.h
b/sst.h
index 7d0b9c37478b03c63fd3a2e9cf2ae47e81d3b5dc..124abe5e1e4243da3986831812abb48871272e67 100644
(file)
--- a/
sst.h
+++ b/
sst.h
@@
-433,7
+433,6
@@
void debugme(void);
void attakreport(int);
void movetho(void);
void probe(void);
void attakreport(int);
void movetho(void);
void probe(void);
-void clearscreen(void);
void iostart(int);
void ioend(void);
void setwnd(short);
void iostart(int);
void ioend(void);
void setwnd(short);