diff options
author | 2015-10-26 17:17:06 +0000 | |
---|---|---|
committer | 2015-10-26 17:17:06 +0000 | |
commit | 302fe310d00d29536b2308ab55d1587cb3708825 (patch) | |
tree | df8215d6a9fa98731a4284829f3726f624d663b8 /usr.bin/tmux/input-keys.c | |
parent | Rather than setpassent(1) for the lifetime of the program, use two smaller (diff) | |
download | wireguard-openbsd-302fe310d00d29536b2308ab55d1587cb3708825.tar.xz wireguard-openbsd-302fe310d00d29536b2308ab55d1587cb3708825.zip |
Some extra logging of where keys are actually going.
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r-- | usr.bin/tmux/input-keys.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c index f7fefb2578c..46f657d81a4 100644 --- a/usr.bin/tmux/input-keys.c +++ b/usr.bin/tmux/input-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input-keys.c,v 1.43 2015/04/21 15:21:41 nicm Exp $ */ +/* $OpenBSD: input-keys.c,v 1.44 2015/10/26 17:17:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -145,7 +145,8 @@ input_key(struct window_pane *wp, int key, struct mouse_event *m) char *out; u_char ch; - log_debug("writing key 0x%x (%s)", key, key_string_lookup_key(key)); + log_debug("writing key 0x%x (%s) to %%%u", key, + key_string_lookup_key(key), wp->id); /* If this is a mouse key, pass off to mouse function. */ if (KEYC_IS_MOUSE(key)) { @@ -251,6 +252,6 @@ input_key_mouse(struct window_pane *wp, struct mouse_event *m) buf[len++] = x + 33; buf[len++] = y + 33; } - log_debug("writing mouse %.*s", (int)len, buf); + log_debug("writing mouse %.*s to %%%u", (int)len, buf, wp->id); bufferevent_write(wp->event, buf, len); } |