summaryrefslogtreecommitdiffstats
path: root/sail/pl_3.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-03-15 03:33:56 +0000
committerdholland <dholland@NetBSD.org>2009-03-15 03:33:56 +0000
commitdc08b05498e19f1e07a127935993a9ebecc7eb40 (patch)
tree7211e7d47c3911884e84082f12fa4c8eb4df45b6 /sail/pl_3.c
parent89a2669a8a8be664d488ac22db57f6c9f9f2b8ec (diff)
downloadbsdgames-darwin-dc08b05498e19f1e07a127935993a9ebecc7eb40.tar.gz
bsdgames-darwin-dc08b05498e19f1e07a127935993a9ebecc7eb40.tar.zst
bsdgames-darwin-dc08b05498e19f1e07a127935993a9ebecc7eb40.zip
Rework curses handling.
The most visible change is that the scrolling buffer of messages now actually scrolls and keeps history, and you type on the bottom line only. For now you can page through the history with ^P/^N; that's not ideal but one can't fix everything all at once. Use resizeable array code (roughly the same that I floated a while ago in connection with make) to hold the scroll.
Diffstat (limited to 'sail/pl_3.c')
-rw-r--r--sail/pl_3.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sail/pl_3.c b/sail/pl_3.c
index 58774e01..b638acc4 100644
--- a/sail/pl_3.c
+++ b/sail/pl_3.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pl_3.c,v 1.19 2009/03/14 22:52:52 dholland Exp $ */
+/* $NetBSD: pl_3.c,v 1.20 2009/03/15 03:33:56 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pl_3.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_3.c,v 1.19 2009/03/14 22:52:52 dholland Exp $");
+__RCSID("$NetBSD: pl_3.c,v 1.20 2009/03/15 03:33:56 dholland Exp $");
#endif
#endif /* not lint */
@@ -212,9 +212,6 @@ acceptcombat(void)
cant:
Msg("Unable to fire %s broadside", r ? "right" : "left");
}
- blockalarm();
- draw_stat();
- unblockalarm();
}
void