diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-02-21 22:11:10 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-02-21 22:11:10 -0500 |
| commit | d3a19b319e8ecdf111de44ffa9847474301edcbb (patch) | |
| tree | d9586b54b3940c91debaea418b9711c0e94c7f5c /src/screen.h | |
| parent | 525a545e62c97c1ed5335d6ce5750341c5ba877e (diff) | |
| download | fujinet-chat-d3a19b319e8ecdf111de44ffa9847474301edcbb.tar.gz | |
WIP.
Diffstat (limited to 'src/screen.h')
| -rw-r--r-- | src/screen.h | 8 |
1 files changed, 8 insertions, 0 deletions
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. */ |
