From f559322224cc3bfa6c1d37631fb6dc5fa93449b9 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 28 May 2021 20:38:43 -0400 Subject: List windows with /window Reuse the /window command to preserve /wi abbreviation. --- ui.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ui.c') diff --git a/ui.c b/ui.c index add6eb3..6449e27 100644 --- a/ui.c +++ b/ui.c @@ -797,6 +797,16 @@ static void inputUpdate(void) { wmove(input, y, x); } +void uiWindows(void) { + for (uint num = 0; num < windows.len; ++num) { + const struct Window *window = windows.ptrs[num]; + uiFormat( + Network, Warm, NULL, "\3%02d%u %s", + idColors[window->id], num, idNames[window->id] + ); + } +} + static void windowShow(uint num) { if (num != windows.show) { windows.swap = windows.show; -- cgit 1.4.1