Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable tmux mouse mode when running under ttyd #723

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ssh/rootfs/etc/s6-overlay/s6-rc.d/ttyd/run
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ fi
# Change working directory
cd /root || bashio::exit.nok 'Unable to change working directory'

# Set environment so that we know if we're running under ttyd
export TTYD=1

# Run the ttyd daemon
exec ttyd "${options[@]}" "${ttyd_command[@]}"
2 changes: 2 additions & 0 deletions ssh/rootfs/root/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ set -g status-fg white
set -g status-bg blue
set -g status-left ''
set -g status-right '%a %m-%d %H:%M'
if-shell '[ -z "$TTYD" ]' {
set -g mouse on
}
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
Expand Down