From dc08b05498e19f1e07a127935993a9ebecc7eb40 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 15 Mar 2009 03:33:56 +0000 Subject: 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. --- sail/display.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'sail/display.h') 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 -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); -- cgit v1.2.3