version 1.18, 2012/01/30 20:39:56 |
version 1.19, 2012/05/22 11:35:37 |
|
|
|
|
const struct cmd_entry cmd_list_windows_entry = { |
const struct cmd_entry cmd_list_windows_entry = { |
"list-windows", "lsw", |
"list-windows", "lsw", |
"aF:t:", 0, 0, |
"F:at:", 0, 0, |
"[-a] [-F format] " CMD_TARGET_SESSION_USAGE, |
"[-a] [-F format] " CMD_TARGET_SESSION_USAGE, |
0, |
0, |
NULL, |
NULL, |
|
|
if (template == NULL) { |
if (template == NULL) { |
switch (type) { |
switch (type) { |
case 0: |
case 0: |
template = "#{window_index}: " |
template = DEFAULT_WINDOW_TEMPLATE; |
"#{window_name} " |
|
"[#{window_width}x#{window_height}] " |
|
"[layout #{window_layout}] #{window_id}" |
|
"#{?window_active, (active),}"; |
|
break; |
break; |
case 1: |
case 1: |
template = "#{session_name}:#{window_index}: " |
template = "#{session_name}:" DEFAULT_WINDOW_TEMPLATE; |
"#{window_name} " |
|
"[#{window_width}x#{window_height}] " |
|
"[layout #{window_layout}] #{window_id}" |
|
"#{?window_active, (active),}"; |
|
break; |
break; |
} |
} |
} |
} |