Add keybind to fix missing cursor after SSH timeout in tmux
This commit is contained in:
@@ -78,6 +78,12 @@ if-shell "tmux -V | awk '{print $2}' | awk -F. '{if ($1*1000+$2 < 2004) exit 0;
|
||||
bind-key C run-shell "cal $(date +%Y)"
|
||||
bind r source-file ~/.tmux.conf \; display "Reloaded config"
|
||||
|
||||
# A pane whose connection died mid-redraw (e.g. an SSH session killed by the
|
||||
# laptop sleeping) can get stuck with tmux thinking the cursor is hidden,
|
||||
# since that's tracked from the pane's own output and nothing ever sent the
|
||||
# matching show-cursor sequence. Re-run it in the active pane to fix it.
|
||||
bind R send-keys "printf '\\033[?25h'" Enter
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Powerline (guarded so machines without it don't error on load)
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user