From 7dd075509dbbf4883388240af2cf4c6dd925cc87 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 14 Mar 2026 02:32:09 -0400 Subject: use GR.1 for screen status line. also revert to using only one status_box. --- src/screen.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/screen.c') diff --git a/src/screen.c b/src/screen.c index 5fa7ce6..6b12302 100644 --- a/src/screen.c +++ b/src/screen.c @@ -131,28 +131,33 @@ void scr_show_status(char s) { int i; char *p, sc; - /* this part should be moved to _create() */ - p = status_boxes[s]; + p = status_box; p[0] = s + 177; /* inverse number */ p[1] = ':'; strncpy(p + 2, scr_names[s], 32); - p += 33; + p += 45; + *p++ = '<'; for(i = 0; i < MAX_SCREENS; i++) { + sc = i + '1'; switch(scr_status[i]) { case SCR_ACTIVE: - sc = 128 | ('1' + i); break; + break; case SCR_INACTIVE: - sc = '1' + i; break; + sc |= 0x40; + break; + /* TODO: case SCR_HILITE: sc |= 0c0; break; */ default: - sc = ' '; + sc = '.'; } *p++ = sc; } + *p++ = '>'; if(!edbox_visible) { scr_waitvcount(112); - *dlist_status_lms = (u16)status_boxes[s]; + *dlist_status_lms = (u16)status_box; + *dlist_last_line = 0x06; /* ANTIC GR.1 */ } } -- cgit v1.2.3