diff options
Diffstat (limited to 'src/screen.c')
| -rw-r--r-- | src/screen.c | 14 |
1 files changed, 10 insertions, 4 deletions
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; |
