summaryrefslogtreecommitdiffstats
path: root/robots
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-08-10 02:40:55 +0000
committermycroft <mycroft@NetBSD.org>1993-08-10 02:40:55 +0000
commitd551c29e62c43eeace740f732bb21e2167647ca9 (patch)
tree7e211ab22c829d838a4c0f6d98563410effc3b85 /robots
parentce005fee278db4f3879faeab5c9f12ab2ffe8338 (diff)
downloadbsdgames-darwin-d551c29e62c43eeace740f732bb21e2167647ca9.tar.gz
bsdgames-darwin-d551c29e62c43eeace740f732bb21e2167647ca9.tar.zst
bsdgames-darwin-d551c29e62c43eeace740f732bb21e2167647ca9.zip
Rewrite grody exit code and eliminate use of _putchar().
Diffstat (limited to 'robots')
-rw-r--r--robots/main.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/robots/main.c b/robots/main.c
index eb20fadd..3ae5763c 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 5.5 (Berkeley) 2/28/91";*/
-static char rcsid[] = "$Id: main.c,v 1.2 1993/08/01 18:52:46 mycroft Exp $";
+static char rcsid[] = "$Id: main.c,v 1.3 1993/08/10 02:40:55 mycroft Exp $";
#endif /* not lint */
# include "robots.h"
@@ -155,17 +155,10 @@ char **av;
void
quit()
{
- extern int _putchar();
-
mvcur(0, COLS - 1, LINES - 1, 0);
- if (CE) {
- tputs(CE, 1, _putchar);
- endwin();
- }
- else {
- endwin();
- putchar('\n');
- }
+ insertln();
+ refresh();
+ endwin();
exit(0);
/* NOTREACHED */
}