summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-03-09 18:01:16 +0000
committerThomas Adam <thomas@xteddy.org>2017-03-09 18:01:16 +0000
commitc5bdae466e4dad6c185fa5146b11275b6119ff24 (patch)
tree05536631ebb8c314a3026748c2b20753594cc5af /server-fn.c
parentfd96ccfd802aec27a4835f7bb2030003b9668e64 (diff)
parentbce1dee0341b3624d927d393fd0f21771660d5ed (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/server-fn.c b/server-fn.c
index ef348f8a..5e67be51 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -27,28 +27,9 @@
#include "tmux.h"
static struct session *server_next_session(struct session *);
-static void server_callback_identify(int, short, void *);
static void server_destroy_session_group(struct session *);
void
-server_fill_environ(struct session *s, struct environ *env)
-{
- const char *term;
- u_int idx;
- long pid;
-
- if (s != NULL) {
- term = options_get_string(global_options, "default-terminal");
- environ_set(env, "TERM", "%s", term);
-
- idx = s->id;
- } else
- idx = (u_int)-1;
- pid = getpid();
- environ_set(env, "TMUX", "%s,%ld,%u", socket_path, pid, idx);
-}
-
-void
server_redraw_client(struct client *c)
{
c->flags |= CLIENT_REDRAW;
@@ -424,46 +405,6 @@ server_check_unattached(void)
}
}
-void
-server_set_identify(struct client *c)
-{
- struct timeval tv;
- int delay;
-
- delay = options_get_number(c->session->options, "display-panes-time");
- tv.tv_sec = delay / 1000;
- tv.tv_usec = (delay % 1000) * 1000L;
-
- if (event_initialized(&c->identify_timer))
- evtimer_del(&c->identify_timer);
- evtimer_set(&c->identify_timer, server_callback_identify, c);
- evtimer_add(&c->identify_timer, &tv);
-
- c->flags |= CLIENT_IDENTIFY;
- c->tty.flags |= (TTY_FREEZE|TTY_NOCURSOR);
- server_redraw_client(c);
-}
-
-void
-server_clear_identify(struct client *c, struct window_pane *wp)
-{
- if (~c->flags & CLIENT_IDENTIFY)
- return;
- c->flags &= ~CLIENT_IDENTIFY;
-
- if (c->identify_callback != NULL)
- c->identify_callback(c, wp);
-
- c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);
- server_redraw_client(c);
-}
-
-static void
-server_callback_identify(__unused int fd, __unused short events, void *data)
-{
- server_clear_identify(data, NULL);
-}
-
/* Set stdin callback. */
int
server_set_stdin_callback(struct client *c, void (*cb)(struct client *, int,