aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-11 23:46:43 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-11 23:46:43 -0400
commitd9a00af38048c71364952326c3039834bcfb47d0 (patch)
tree006975d625faf67db3c2e6a9599ad4743760555d
parent819095bcf226d6b1a1cd71f8b0150710bc9850a0 (diff)
downloadfujinet-chat-d9a00af38048c71364952326c3039834bcfb47d0.tar.gz
List <unused> screens with Start+L.
-rw-r--r--src/irc.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/irc.c b/src/irc.c
index fa39df5..faf5f91 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -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();
}
}