diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-11 23:46:43 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-11 23:46:43 -0400 |
| commit | d9a00af38048c71364952326c3039834bcfb47d0 (patch) | |
| tree | 006975d625faf67db3c2e6a9599ad4743760555d /src | |
| parent | 819095bcf226d6b1a1cd71f8b0150710bc9850a0 (diff) | |
| download | fujinet-chat-d9a00af38048c71364952326c3039834bcfb47d0.tar.gz | |
List <unused> screens with Start+L.
Diffstat (limited to 'src')
| -rw-r--r-- | src/irc.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -728,14 +728,15 @@ void list_screens(void) { scr_activate(scr_current); for(i = 0; i < MAX_SCREENS; i++) { - if(scr_status[i] != SCR_UNUSED) { - bold(); - scr_putc_active(i + '1'); - bold(); - scr_putc_active(':'); + bold(); + scr_putc_active(i + '1'); + bold(); + scr_putc_active(':'); + if(scr_status[i] == SCR_UNUSED) + scr_print_active("<unused>"); + else scr_print_active(scr_names[i]); - scr_eol_active(); - } + scr_eol_active(); } } |
