aboutsummaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c19
1 files changed, 12 insertions, 7 deletions
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 */
}
}