diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-22 06:03:13 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-22 06:03:13 -0400 |
| commit | ee3f5a950618104c3e34766dc3ab539a51b6968a (patch) | |
| tree | 357955649a59fdbdf2dc0325ce0ee6612fa8c92c /src/screen.c | |
| parent | 57fdf0bc1f50e75800d3ca2e14bace577161bdaf (diff) | |
| download | fujinet-chat-ee3f5a950618104c3e34766dc3ab539a51b6968a.tar.gz | |
Add 4th status color, stop auto-activating screen before we print text to it.
Diffstat (limited to 'src/screen.c')
| -rw-r--r-- | src/screen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 350a60c..3c61f01 100644 --- a/src/screen.c +++ b/src/screen.c @@ -150,6 +150,9 @@ void scr_show_status(char s) { case SCR_ACTIVE: /* color1 */ sc |= 0x40; break; + case SCR_OTHER: /* color2 */ + sc |= 0x80; + break; case SCR_HILITE: /* color3 */ sc |= 0xc0; break; @@ -168,11 +171,13 @@ void scr_show_status(char s) { } } +/* void scr_hilite_active(void) { if(scr_active == scr_current) return; scr_status[scr_active] = SCR_HILITE; scr_show_status(scr_current); } +*/ void scr_refresh(void) { scr_display(scr_current); @@ -286,10 +291,12 @@ void scr_print_priv(const char *text) { } void scr_activate(char s) { + /* if(s != scr_current) { if(scr_status[s] != SCR_HILITE) scr_status[s] = SCR_ACTIVE; scr_show_status(scr_current); } + */ scr_active = s; } |
