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

Tmux compatibility #761

Open
sa-dbilling opened this issue Sep 10, 2024 · 1 comment
Open

Tmux compatibility #761

sa-dbilling opened this issue Sep 10, 2024 · 1 comment
Labels

Comments

@sa-dbilling
Copy link

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:
image

Characters also appear here:
image

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:
image

@bugy bugy added the feature label Sep 12, 2024
@bugy
Copy link
Owner

bugy commented Sep 12, 2024

Hi @sa-dbilling thanks for reporting. Unfortunately, I won't have time to solve it

Regarding the cleaning or a terminal after an exit, this is based on tmux. Apparently, it sends "clear screen" command. I'm not sure, if it's possible to configure Tmux not to do this cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants