Description
Is there any way to improve the terminal compatibility with tmux?
I'm running a bash script which uses tmux to ssh to a server to run commands on it. It sends the commands and then attaches to the tmux session, then detaches again when the command has run. Sometimes twice if there is another command to run.
The first issue is that the previous scrollback history in the script-server terminal is lost when the tmux session detaches. Which also means it's not shown in the history. Is there a way to preserve it?
The second issue is the way that the tmux session is displayed on the terminal. The green tmux session bar overlaps output and displays what appears to be escape sequences or control codes.
Attached to tmux session with green tmux bar overlap:
It also displays those in the original terminal when it outputs that the tmux session exited and can no longer see the previous scrollback history: