diff options
author | 2015-11-12 11:05:34 +0000 | |
---|---|---|
committer | 2015-11-12 11:05:34 +0000 | |
commit | 885a46987fa37c3ab9f797b657cf591a414f800f (patch) | |
tree | 8affdbe66f542715691e2756b150ba5e8fd64eff /usr.bin/tmux/window-clock.c | |
parent | can just IFQ_DEQUEUE instead of POLL followed immediately by DEQUEUE (diff) | |
download | wireguard-openbsd-885a46987fa37c3ab9f797b657cf591a414f800f.tar.xz wireguard-openbsd-885a46987fa37c3ab9f797b657cf591a414f800f.zip |
Support UTF-8 key bindings by expanding the key type from int to
uint64_t and converting UTF-8 to Unicode on input and the reverse on
output. (This allows key bindings, there are still omissions - the
largest being that the various prompts do not accept UTF-8.)
Diffstat (limited to 'usr.bin/tmux/window-clock.c')
-rw-r--r-- | usr.bin/tmux/window-clock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/window-clock.c b/usr.bin/tmux/window-clock.c index dfebb092db8..351702815d1 100644 --- a/usr.bin/tmux/window-clock.c +++ b/usr.bin/tmux/window-clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-clock.c,v 1.14 2015/10/27 15:58:43 nicm Exp $ */ +/* $OpenBSD: window-clock.c,v 1.15 2015/11/12 11:05:34 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -28,7 +28,7 @@ struct screen *window_clock_init(struct window_pane *); void window_clock_free(struct window_pane *); void window_clock_resize(struct window_pane *, u_int, u_int); void window_clock_key(struct window_pane *, struct client *, - struct session *, int, struct mouse_event *); + struct session *, key_code, struct mouse_event *); void window_clock_timer_callback(int, short, void *); void window_clock_draw_screen(struct window_pane *); @@ -186,7 +186,8 @@ window_clock_resize(struct window_pane *wp, u_int sx, u_int sy) void window_clock_key(struct window_pane *wp, unused struct client *c, - unused struct session *sess, unused int key, unused struct mouse_event *m) + unused struct session *sess, unused key_code key, + unused struct mouse_event *m) { window_pane_reset_mode(wp); } |