From 715964c0b5ab8a2bc2b8ae8b7935e9ea0088e332 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 24 Apr 2026 03:54:01 -0400 Subject: Dynamic screens. Still a bit flaky, but actually does work to some degree. --- src/screen.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/screen.h') diff --git a/src/screen.h b/src/screen.h index 76f82c9..e0aad31 100644 --- a/src/screen.h +++ b/src/screen.h @@ -1,9 +1,8 @@ #include "addrs.h" +#include "pool.h" -#define MAX_SCREENS 7 #define LINE_SIZE 40 -#define SCREEN_SIZE 920 -#define BOTTOM_LINE_OFFS 880 +#define SCR_VIS_HEIGHT 23 #define SCR_UNUSED 0 #define SCR_INACTIVE 1 @@ -23,15 +22,6 @@ extern char scr_current; /* the screen that's currently being written to */ extern char scr_active; -/* which screens are "active". the screen being displayed is - never active. any screen that's not visible that's had anything - written to it gets marked active. switching the display to an - active screen clears its active flag. */ -extern char scr_status[MAX_SCREENS]; - -/* names (channel or query). should be treated as read-only by callers. */ -extern char scr_names[7][32]; - /* call before using any of the other functions. sets up the display list, clears all screen memory, selects screen 0 for display. */ @@ -44,7 +34,7 @@ void scr_init(void); if display is true, the new screen displays. otherwise it's created "in the background". */ -char scr_create(const char *name, char display); +char scr_create(const char *name); /* destroys a screen (frees up its slot). */ void scr_destroy(char s); -- cgit v1.2.3