aboutsummaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-14 03:20:21 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-14 03:20:21 -0400
commit94b8c969ac821a440834d57514ccd403cc134dd1 (patch)
treecb2f14c5b6a1b48d5e1440affb9046296e52f625 /src/screen.c
parent65c2fc06bc9e0df87a1d4d51b62a3c9af1e4b048 (diff)
downloadfujinet-chat-94b8c969ac821a440834d57514ccd403cc134dd1.tar.gz
playing with colors for GR.1 screen status.
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);