diff options
author | C. McEnroe | 2021-05-28 20:38:43 -0400 |
---|---|---|
committer | C. McEnroe | 2021-05-28 20:40:25 -0400 |
commit | f559322224cc3bfa6c1d37631fb6dc5fa93449b9 (patch) | |
tree | af54593bc7b2fa0f28df12345b97a523a10eeb56 /ui.c | |
parent | 1deee3c81bd7862be52bb2f03da7648756f1e3c9 (diff) |
List windows with /window 1.8
Reuse the /window command to preserve /wi abbreviation.
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |