aboutsummaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-16 03:06:19 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-16 03:06:19 -0400
commit545db9259365913f433f21f9c33f278fe96194d2 (patch)
tree8d8a3183bace932731357a3755023279861ebe75 /src/screen.c
parent6d6c44d74e113ace4709f037316a2ec80753aa3a (diff)
downloadfujinet-chat-545db9259365913f433f21f9c33f278fe96194d2.tar.gz
Move screen statuses to the right, get rid of <>, add indicators for net activity and most-recent incoming IRC activity.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c
index e71b5e8..350a60c 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4,6 +4,7 @@
#include "addrs.h"
#include "screen.h"
#include "edbox.h"
+#include "indic8.h"
#define SDLST ((u16 *)0x0230)
@@ -42,6 +43,8 @@ void scr_init(void) {
OS.sdmctl = 0; /* disappear the screen */
+ ind_net_status = status_box + 40;
+
scr_waitvcount(112); /* after the last GR.0 line */
*SDLST = DLIST_BOT_ADDR;
OS.chbas = FONT_ADDR_HI;
@@ -135,9 +138,9 @@ void scr_show_status(char s) {
status_box[1] = ':';
strncpy(status_box + 2, scr_names[s], 32);
- p = status_box + 45;
+ p = status_box + 53; /* up against the right border */
- *p++ = '<';
+ // *p++ = '<';
// *p++ = 0xbc; // color2, maybe use?
for(i = 0; i < MAX_SCREENS; i++) {
sc = i + '1';
@@ -155,7 +158,7 @@ void scr_show_status(char s) {
}
*p++ = sc;
}
- *p++ = '>';
+ // *p++ = '>';
// *p++ = 0xbe;
if(!edbox_visible) {