From cb7d03e5ce8be5e4f360e63127a2b5a1adefb0c7 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 15 Apr 2018 11:57:57 -0700 Subject: set tmux and screen escape to be the same as dtach --- .screenrc | 2 +- .tmux.conf | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.screenrc b/.screenrc index 5022f635..6d3bceba 100644 --- a/.screenrc +++ b/.screenrc @@ -7,7 +7,7 @@ vbell off autodetach on startup_message off defscrollback 5000 -escape ^z^z +escape ^\\ defnonblock 5 nonblock 5 altscreen on diff --git a/.tmux.conf b/.tmux.conf index 311a93ba..534c3db4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -30,13 +30,12 @@ set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l # --- key bindings -# - C-] ] to send C-] to e.g. Emacs or nested tmux; -# - C-] C-] to bounce between windows -# TODO use C-\ for consistency with dtach and then easier to use tmux scrollback mode -set -g prefix C-] -bind ] send-prefix -unbind C-] -bind-key C-] last-window +# - C-\ \ to send C-\ to e.g. Emacs or nested tmux; +# - C-\ C-\ to bounce between windows +set -g prefix "C-\\" +bind "\\" send-prefix +# unbind C-\\ +bind-key "C-\\" last-window # splitting should maintain current working directory bind '"' split-window -c "#{pane_current_path}" @@ -77,5 +76,5 @@ set-option -g status-position top # --- terminal keycode fixes -set -g terminal-overrides "xterm*:kf1=\e[11~:kf2=\e[12~:kf3=\e[13~:kf4=\e[14~:kf5=\e[15~:kf6=\e[17~:kf7=\e[18~:kf8=\e[19~" +# set -g terminal-overrides "xterm*:kf1=\e[11~:kf2=\e[12~:kf3=\e[13~:kf4=\e[14~:kf5=\e[15~:kf6=\e[17~:kf7=\e[18~:kf8=\e[19~" # set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" -- cgit v1.2.3