version 1.35, 2013/10/10 12:35:31 |
version 1.36, 2013/10/10 12:39:24 |
|
|
struct grid_line *gl; |
struct grid_line *gl; |
unsigned long long size; |
unsigned long long size; |
u_int i, idx; |
u_int i, idx; |
const char *cwd; |
|
char *cmd; |
char *cmd; |
|
|
size = 0; |
size = 0; |
|
|
format_add(ft, "pane_pid", "%ld", (long) wp->pid); |
format_add(ft, "pane_pid", "%ld", (long) wp->pid); |
if (wp->cmd != NULL) |
if (wp->cmd != NULL) |
format_add(ft, "pane_start_command", "%s", wp->cmd); |
format_add(ft, "pane_start_command", "%s", wp->cmd); |
if ((cwd = get_proc_cwd(wp->fd)) != NULL) |
|
format_add(ft, "pane_current_path", "%s", cwd); |
|
if ((cmd = format_get_command(wp)) != NULL) { |
if ((cmd = format_get_command(wp)) != NULL) { |
format_add(ft, "pane_current_command", "%s", cmd); |
format_add(ft, "pane_current_command", "%s", cmd); |
free(cmd); |
free(cmd); |