summaryrefslogtreecommitdiffstats
path: root/sail/extern.h
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/extern.h
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/extern.h')
-rw-r--r--sail/extern.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/sail/extern.h b/sail/extern.h
index dba55005..06006683 100644
--- a/sail/extern.h
+++ b/sail/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.33 2009/03/14 22:54:05 dholland Exp $ */
+/* $NetBSD: extern.h,v 1.34 2009/03/15 03:33:56 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -313,6 +313,7 @@ void choke(int) __attribute__((__noreturn__));
void child(int);
/* pl_2.c */
+void newturn(int);
void play(void) __attribute__((__noreturn__));
/* pl_3.c */
@@ -338,7 +339,6 @@ void loadplayer(void);
/* pl_7.c */
void initscreen(void);
void cleanupscreen(void);
-void newturn(int);
void Signal(const char *, struct ship *, ...)
__attribute__((__format__(__printf__,1,3)));
void Msg(const char *, ...)
@@ -346,12 +346,6 @@ void Msg(const char *, ...)
void prompt(const char *, struct ship *);
int sgetch(const char *, struct ship *, int);
void sgetstr(const char *, char *, int);
-void draw_screen(void);
-void draw_view(void);
-void draw_turn(void);
-void draw_stat(void);
-void draw_slot(void);
-void draw_board(void);
void centerview(void);
void upview(void);
void downview(void);