summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-04-15 11:57:57 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-04-15 11:57:57 -0700
commitcb7d03e5ce8be5e4f360e63127a2b5a1adefb0c7 (patch)
tree35a424ddb2d999fc2386bdd5be42259b0dc23ffa
parent383a827d20c275d838f9867fda5a5cedce1f560c (diff)
downloaddotfiles-cb7d03e5ce8be5e4f360e63127a2b5a1adefb0c7.tar.gz
set tmux and screen escape to be the same as dtach
-rw-r--r--.screenrc2
-rw-r--r--.tmux.conf15
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@"