version 1.20, 2015/02/05 10:29:43 |
version 1.21, 2015/09/16 22:40:05 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <unistd.h> |
|
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
|
|
enum cmd_retval cmd_list_panes_exec(struct cmd *, struct cmd_q *); |
enum cmd_retval cmd_list_panes_exec(struct cmd *, struct cmd_q *); |
|
|
void cmd_list_panes_server(struct cmd *, struct cmd_q *); |
void cmd_list_panes_server(struct cmd *, struct cmd_q *); |
void cmd_list_panes_session( |
void cmd_list_panes_session(struct cmd *, struct session *, struct cmd_q *, |
struct cmd *, struct session *, struct cmd_q *, int); |
int); |
void cmd_list_panes_window(struct cmd *, |
void cmd_list_panes_window(struct cmd *, struct session *, struct winlink *, |
struct session *, struct winlink *, struct cmd_q *, int); |
struct cmd_q *, int); |
|
|
const struct cmd_entry cmd_list_panes_entry = { |
const struct cmd_entry cmd_list_panes_entry = { |
"list-panes", "lsp", |
"list-panes", "lsp", |
|
|
} |
} |
|
|
void |
void |
cmd_list_panes_session( |
cmd_list_panes_session(struct cmd *self, struct session *s, struct cmd_q *cmdq, |
struct cmd *self, struct session *s, struct cmd_q *cmdq, int type) |
int type) |
{ |
{ |
struct winlink *wl; |
struct winlink *wl; |
|
|
|
|
} |
} |
|
|
void |
void |
cmd_list_panes_window(struct cmd *self, |
cmd_list_panes_window(struct cmd *self, struct session *s, struct winlink *wl, |
struct session *s, struct winlink *wl, struct cmd_q *cmdq, int type) |
struct cmd_q *cmdq, int type) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
struct window_pane *wp; |
struct window_pane *wp; |
|
|
"#{?pane_active, (active),}#{?pane_dead, (dead),}"; |
"#{?pane_active, (active),}#{?pane_dead, (dead),}"; |
break; |
break; |
case 2: |
case 2: |
template = "#{session_name}:#{window_index}.#{pane_index}: " |
template = "#{session_name}:#{window_index}." |
"[#{pane_width}x#{pane_height}] [history " |
"#{pane_index}: [#{pane_width}x#{pane_height}] " |
"#{history_size}/#{history_limit}, " |
"[history #{history_size}/#{history_limit}, " |
"#{history_bytes} bytes] #{pane_id}" |
"#{history_bytes} bytes] #{pane_id}" |
"#{?pane_active, (active),}#{?pane_dead, (dead),}"; |
"#{?pane_active, (active),}#{?pane_dead, (dead),}"; |
break; |
break; |