From d3a19b319e8ecdf111de44ffa9847474301edcbb Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 21 Feb 2026 22:11:10 -0500 Subject: WIP. --- src/screen.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/screen.h') diff --git a/src/screen.h b/src/screen.h index 51bf090..fe8c928 100644 --- a/src/screen.h +++ b/src/screen.h @@ -18,6 +18,9 @@ /* the screen that's currently displaying */ 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 @@ -63,6 +66,8 @@ void scr_refresh(void); returns 0 (the server messages screen) */ char scr_getbyname(const char *name); +void scr_activate_name(const char *name); + /* print one character to a screen. handles scrolling. will not print an EOL at column 0 (just ignores it). */ void scr_putc(char s, char c); @@ -78,6 +83,9 @@ void scr_print_active(const char *text); /* print to the currently-displayed screen */ void scr_print_current(const char *text); +void scr_print_server(const char *text); +void scr_print_priv(const char *text); + /* set a screen's status to active, if it's not the currently-displayed one. scr_print() sets it already, but anything that uses scr_putc() will have to call this. */ -- cgit v1.2.3