aboutsummaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/screen.c b/src/screen.c
index 6b12302..f10ac87 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -131,28 +131,32 @@ void scr_show_status(char s) {
int i;
char *p, sc;
- p = status_box;
- p[0] = s + 177; /* inverse number */
- p[1] = ':';
- strncpy(p + 2, scr_names[s], 32);
+ status_box[0] = s + 177; /* inverse number */
+ status_box[1] = ':';
+ strncpy(status_box + 2, scr_names[s], 32);
+
+ p = status_box + 45;
- p += 45;
*p++ = '<';
+ // *p++ = 0xbc; // color2, maybe use?
for(i = 0; i < MAX_SCREENS; i++) {
sc = i + '1';
switch(scr_status[i]) {
- case SCR_ACTIVE:
+ case SCR_INACTIVE: /* color0 */
break;
- case SCR_INACTIVE:
+ case SCR_ACTIVE: /* color1 */
sc |= 0x40;
break;
- /* TODO: case SCR_HILITE: sc |= 0c0; break; */
+// case SCR_HILITE: /* color3 */
+// sc |= 0xc0;
+// break;
default:
sc = '.';
}
*p++ = sc;
}
*p++ = '>';
+ // *p++ = 0xbe;
if(!edbox_visible) {
scr_waitvcount(112);