version 1.11, 2013/01/18 02:16:21 |
version 1.12, 2013/02/05 11:01:45 |
|
|
unsigned long long size; |
unsigned long long size; |
u_int i; |
u_int i; |
u_int idx; |
u_int idx; |
|
const char *cwd; |
|
|
size = 0; |
size = 0; |
for (i = 0; i < gd->hsize; i++) { |
for (i = 0; i < gd->hsize; i++) { |
|
|
format_add(ft, "pane_start_command", "%s", wp->cmd); |
format_add(ft, "pane_start_command", "%s", wp->cmd); |
if (wp->cwd != NULL) |
if (wp->cwd != NULL) |
format_add(ft, "pane_start_path", "%s", wp->cwd); |
format_add(ft, "pane_start_path", "%s", wp->cwd); |
format_add(ft, "pane_current_path", "%s", get_proc_cwd(wp->fd)); |
if ((cwd = get_proc_cwd(wp->fd)) != NULL) |
|
format_add(ft, "pane_current_path", "%s", cwd); |
format_add(ft, "pane_pid", "%ld", (long) wp->pid); |
format_add(ft, "pane_pid", "%ld", (long) wp->pid); |
format_add(ft, "pane_tty", "%s", wp->tty); |
if (wp->tty != NULL) |
|
format_add(ft, "pane_tty", "%s", wp->tty); |
} |
} |
|
|
void |
void |