From ed1031b358967b9a3037a8c5c72caae17ce2961c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 9 Jan 2009 16:45:58 +0000 Subject: 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. --- tmux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index e60d5a2e..f83fdb2f 100644 --- a/tmux.c +++ b/tmux.c @@ -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 @@ -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); -- cgit