summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-11-15 06:52:12 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-11-15 06:52:12 +0000
commit0cc87acc67e6c732e1450bc9fcb144cd9f95e4ec (patch)
tree517e2e2d470fc86784d7556bc478169fdec7eed2 /usr.bin/tmux
parent99d1535a2704232d35d869ca7ce11aed2cbb95e0 (diff)
Show more window and pane flags in list-* output, and put layout on the
same line.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-list-panes.c7
-rw-r--r--usr.bin/tmux/cmd-list-windows.c8
2 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-list-panes.c b/usr.bin/tmux/cmd-list-panes.c
index 51e7036aa3e..71d8ac3bf86 100644
--- a/usr.bin/tmux/cmd-list-panes.c
+++ b/usr.bin/tmux/cmd-list-panes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-panes.c,v 1.5 2010/08/11 07:27:50 nicm Exp $ */
+/* $OpenBSD: cmd-list-panes.c,v 1.6 2010/11/15 06:52:11 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -65,9 +65,10 @@ cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx)
}
size += gd->hsize * sizeof *gd->linedata;
- ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]%s",
+ ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]%s%s",
n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size,
- wp == wp->window->active ? " (active)" : "");
+ wp == wp->window->active ? " (active)" : "",
+ wp->fd == -1 ? " (dead)" : "");
n++;
}
diff --git a/usr.bin/tmux/cmd-list-windows.c b/usr.bin/tmux/cmd-list-windows.c
index 72f7d7b431d..231f1a084a4 100644
--- a/usr.bin/tmux/cmd-list-windows.c
+++ b/usr.bin/tmux/cmd-list-windows.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-windows.c,v 1.9 2010/06/29 03:30:13 nicm Exp $ */
+/* $OpenBSD: cmd-list-windows.c,v 1.10 2010/11/15 06:52:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);
}