aboutsummaryrefslogtreecommitdiff
path: root/control-notify.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-05-21 08:55:31 +0100
committerThomas Adam <thomas@xteddy.org>2020-05-21 08:55:31 +0100
commit40126ee96c0b9e66ad90ed94767287de13d2a79e (patch)
tree904792b0705a56bb72edfb7137d18baf89ffbab3 /control-notify.c
parent98a18d064aaf46e0b97a375b8c5b2b9ff15cf3df (diff)
parent31e3f2d530090793815d145a16a1ce3b469c4266 (diff)
downloadrtmux-40126ee96c0b9e66ad90ed94767287de13d2a79e.tar.gz
rtmux-40126ee96c0b9e66ad90ed94767287de13d2a79e.tar.bz2
rtmux-40126ee96c0b9e66ad90ed94767287de13d2a79e.zip
Merge branch 'obsd-master'
Diffstat (limited to 'control-notify.c')
-rw-r--r--control-notify.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/control-notify.c b/control-notify.c
index a513c147..a1735d57 100644
--- a/control-notify.c
+++ b/control-notify.c
@@ -27,40 +27,6 @@
((c) != NULL && ((c)->flags & CLIENT_CONTROL))
void
-control_notify_input(struct client *c, struct window_pane *wp,
- const u_char *buf, size_t len)
-{
- struct evbuffer *message;
- u_int i;
-
- if (c->session == NULL)
- return;
-
- if (c->flags & CLIENT_CONTROL_NOOUTPUT)
- return;
-
- /*
- * Only write input if the window pane is linked to a window belonging
- * to the client's session.
- */
- if (winlink_find_by_window(&c->session->windows, wp->window) != NULL) {
- message = evbuffer_new();
- if (message == NULL)
- fatalx("out of memory");
- evbuffer_add_printf(message, "%%output %%%u ", wp->id);
- for (i = 0; i < len; i++) {
- if (buf[i] < ' ' || buf[i] == '\\')
- evbuffer_add_printf(message, "\\%03o", buf[i]);
- else
- evbuffer_add_printf(message, "%c", buf[i]);
- }
- evbuffer_add(message, "", 1);
- control_write(c, "%s", EVBUFFER_DATA(message));
- evbuffer_free(message);
- }
-}
-
-void
control_notify_pane_mode_changed(int pane)
{
struct client *c;