aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-10 18:53:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-10 18:53:11 +0000
commit15b9946a4094d22f3bde6ef5af67fbb526807329 (patch)
treee7af747e2b2eb8a8f54910699c042c6205f3b488
parentd9961f40bf13b776267cb5d13a8a72a7c4ee1c41 (diff)
downloadrtmux-15b9946a4094d22f3bde6ef5af67fbb526807329.tar.gz
rtmux-15b9946a4094d22f3bde6ef5af67fbb526807329.tar.bz2
rtmux-15b9946a4094d22f3bde6ef5af67fbb526807329.zip
There is no real standard for modifier plus function keys. Previously, tmux
output some from rxvt but in other ways did the same as xterm or other terminals, but this is a bit inconsistent. xterm's method is fairly sensible and we already support it (xterm-keys), so enable it by default instead.
-rw-r--r--tmux.11
-rw-r--r--tmux.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index bd346529..f62f00b2 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1788,6 +1788,7 @@ will generate
.Xr xterm 1 -style
function key sequences; these have a number included to indicate modifiers such
as Shift, Alt or Ctrl.
+The default is on.
.El
.It Xo Ic show-options
.Op Fl g
diff --git a/tmux.c b/tmux.c
index d077aff6..30e1bc60 100644
--- a/tmux.c
+++ b/tmux.c
@@ -390,7 +390,7 @@ main(int argc, char **argv)
options_set_number(wo, "window-status-current-bg", 8);
options_set_number(wo, "window-status-current-fg", 8);
options_set_number(wo, "window-status-fg", 8);
- options_set_number(wo, "xterm-keys", 0);
+ options_set_number(wo, "xterm-keys", 1);
options_set_number(wo, "remain-on-exit", 0);
options_set_number(wo, "synchronize-panes", 0);