version 1.6, 2010/11/15 06:52:11 |
version 1.7, 2011/01/04 00:42:46 |
|
|
|
|
const struct cmd_entry cmd_list_panes_entry = { |
const struct cmd_entry cmd_list_panes_entry = { |
"list-panes", "lsp", |
"list-panes", "lsp", |
|
"t:", 0, 0, |
CMD_TARGET_WINDOW_USAGE, |
CMD_TARGET_WINDOW_USAGE, |
0, "", |
0, |
cmd_target_init, |
NULL, |
cmd_target_parse, |
NULL, |
cmd_list_panes_exec, |
cmd_list_panes_exec |
cmd_target_free, |
|
cmd_target_print |
|
}; |
}; |
|
|
int |
int |
cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx) |
cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx) |
{ |
{ |
struct cmd_target_data *data = self->data; |
struct args *args = self->args; |
struct winlink *wl; |
struct winlink *wl; |
struct window_pane *wp; |
struct window_pane *wp; |
struct grid *gd; |
struct grid *gd; |
|
|
u_int i, n; |
u_int i, n; |
unsigned long long size; |
unsigned long long size; |
|
|
if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) |
if ((wl = cmd_find_window(ctx, args_get(args, 't'), NULL)) == NULL) |
return (-1); |
return (-1); |
|
|
n = 0; |
n = 0; |