diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-11-15 06:52:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-11-15 06:52:11 +0000 |
commit | 9a1b4f9ed3285d3b9b0e8d22b0bdb1a97df7e949 (patch) | |
tree | dd5c1076e2184c537a179a80f2e1466902080aee /cmd-list-windows.c | |
parent | 7e542d119b8c2f80cbd675f86959171e2c0b50d4 (diff) | |
download | rtmux-9a1b4f9ed3285d3b9b0e8d22b0bdb1a97df7e949.tar.gz rtmux-9a1b4f9ed3285d3b9b0e8d22b0bdb1a97df7e949.tar.bz2 rtmux-9a1b4f9ed3285d3b9b0e8d22b0bdb1a97df7e949.zip |
Show more window and pane flags in list-* output, and put layout on the
same line.
Diffstat (limited to 'cmd-list-windows.c')
-rw-r--r-- | cmd-list-windows.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-list-windows.c b/cmd-list-windows.c index cc12b0f4..7a4a28c2 100644 --- a/cmd-list-windows.c +++ b/cmd-list-windows.c @@ -51,10 +51,10 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) return (-1); RB_FOREACH(wl, winlinks, &s->windows) { - ctx->print(ctx, "%d: %s [%ux%u]", - wl->idx, wl->window->name, wl->window->sx, wl->window->sy); layout = layout_dump(wl->window); - ctx->print(ctx, " layout: %s", layout); + ctx->print(ctx, "%d: %s [%ux%u] [layout %s]%s", + wl->idx, wl->window->name, wl->window->sx, wl->window->sy, + layout, wl == s->curw ? " (active)" : ""); xfree(layout); } |