diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-15 11:57:57 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-15 11:57:57 -0700 |
commit | cb7d03e5ce8be5e4f360e63127a2b5a1adefb0c7 (patch) | |
tree | 35a424ddb2d999fc2386bdd5be42259b0dc23ffa | |
parent | 383a827d20c275d838f9867fda5a5cedce1f560c (diff) | |
download | dotfiles-cb7d03e5ce8be5e4f360e63127a2b5a1adefb0c7.tar.gz |
set tmux and screen escape to be the same as dtach
-rw-r--r-- | .screenrc | 2 | ||||
-rw-r--r-- | .tmux.conf | 15 |
2 files changed, 8 insertions, 9 deletions
@@ -7,7 +7,7 @@ vbell off autodetach on startup_message off defscrollback 5000 -escape ^z^z +escape ^\\ defnonblock 5 nonblock 5 altscreen on @@ -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@" |