summaryrefslogtreecommitdiffstats
path: root/sail/display.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/display.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/display.h')
-rw-r--r--sail/display.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/sail/display.h b/sail/display.h
index bcd58b95..5826a2ed 100644
--- a/sail/display.h
+++ b/sail/display.h
@@ -1,4 +1,4 @@
-/* $NetBSD: display.h,v 1.6 2009/03/15 00:50:47 dholland Exp $ */
+/* $NetBSD: display.h,v 1.7 2009/03/15 03:33:56 dholland Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,10 +31,14 @@
#include <stdbool.h>
-void display_show_obp(int which, bool show);
-void display_show_dbp(int which, bool show);
-void display_refresh_slot_w(void);
+void display_set_obp(int which, bool show);
+void display_set_dbp(int which, bool show);
+
+void display_scroll_pageup(void);
+void display_scroll_pagedown(void);
+void display_adjust_view(void);
void display_hide_prompt(void);
void display_reshow_prompt(void);
-void display_adjust_view(void);
+void display_force_full_redraw(void);
+void display_redraw(void);