diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-09 16:45:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-09 16:45:58 +0000 |
commit | ed1031b358967b9a3037a8c5c72caae17ce2961c (patch) | |
tree | b53b670692057cb4b9560984444c5144ff2eca31 /tmux.c | |
parent | 622d4def2283e6fdc13dae33d8814e2af5169a65 (diff) |
Update key handling code. Simplify, support ctrl properly and add a new window option (xterm-keys) to output xterm key codes including ctrl and, if available, alt and shift.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.84 2008-12-10 20:25:41 nicm Exp $ */ +/* $Id: tmux.c,v 1.85 2009-01-09 16:45:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -236,7 +236,8 @@ main(int argc, char **argv) options_set_number(&global_options, "message-fg", 0); options_set_number(&global_options, "message-bg", 3); options_init(&global_window_options, NULL); - options_set_number(&global_window_options, "monitor-activity", 0); + options_set_number(&global_window_options, "xterm-keys", 0); + options_set_number(&global_window_options, "monitor-activity", 0); options_set_number(&global_window_options, "aggressive-resize", 0); options_set_number(&global_window_options, "remain-on-exit", 0); options_set_number(&global_window_options, "utf8", 0); |