From 7f4b86763ca2f340ff9e1cae9a139f91fe349149 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 14 Mar 2026 04:19:26 -0400 Subject: show hilited screens in red. --- src/screen.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/screen.c') diff --git a/src/screen.c b/src/screen.c index f10ac87..e71b5e8 100644 --- a/src/screen.c +++ b/src/screen.c @@ -147,9 +147,9 @@ void scr_show_status(char s) { case SCR_ACTIVE: /* color1 */ sc |= 0x40; break; -// case SCR_HILITE: /* color3 */ -// sc |= 0xc0; -// break; + case SCR_HILITE: /* color3 */ + sc |= 0xc0; + break; default: sc = '.'; } @@ -165,6 +165,12 @@ 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); } @@ -278,7 +284,7 @@ void scr_print_priv(const char *text) { void scr_activate(char s) { if(s != scr_current) { - scr_status[s] = SCR_ACTIVE; + if(scr_status[s] != SCR_HILITE) scr_status[s] = SCR_ACTIVE; scr_show_status(scr_current); } scr_active = s; -- cgit v1.2.3