Last active
February 6, 2018 01:57
-
-
Save dimfeld/bb46848f8b9a73b3ca763759a51b90ff to your computer and use it in GitHub Desktop.
run ssh and then disable mouse reporting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run ssh and then disable mouse reporting. This is so that mouse scrolling | |
# will work properly in the local session if a tmux session drops. | |
/usr/bin/ssh "$@" | |
EXITCODE=$? | |
if tty -s; then | |
printf '\e[?1000l' | |
fi | |
exit $EXITCODE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment