version 1.33, 2013/10/10 12:04:01 |
version 1.34, 2013/10/10 12:26:35 |
|
|
time_t t; |
time_t t; |
struct session *s; |
struct session *s; |
|
|
format_add(ft, "client_cwd", "%s", c->cwd); |
|
format_add(ft, "client_height", "%u", c->tty.sy); |
format_add(ft, "client_height", "%u", c->tty.sy); |
format_add(ft, "client_width", "%u", c->tty.sx); |
format_add(ft, "client_width", "%u", c->tty.sx); |
if (c->tty.path != NULL) |
if (c->tty.path != NULL) |
|
|
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 (wp->cwd != NULL) |
|
format_add(ft, "pane_start_path", "%s", wp->cwd); |
|
if ((cwd = get_proc_cwd(wp->fd)) != NULL) |
if ((cwd = get_proc_cwd(wp->fd)) != NULL) |
format_add(ft, "pane_current_path", "%s", cwd); |
format_add(ft, "pane_current_path", "%s", cwd); |
if ((cmd = get_proc_name(wp->fd, wp->tty)) != NULL) { |
if ((cmd = get_proc_name(wp->fd, wp->tty)) != NULL) { |