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

[Bug]: Tmux horizontal split panel messed up when using Zsh #12556

Closed
pseudoparenchymatous opened this issue Oct 25, 2022 · 12 comments · Fixed by termux/termux-app#4098 or termux-play-store/termux-apps#35
Labels
bug report Something is not working properly termux-app

Comments

@pseudoparenchymatous
Copy link

pseudoparenchymatous commented Oct 25, 2022

Problem description

Tmux is bugging with the colors
https://imgur.com/a/3JirVAx

What steps will reproduce the bug?

Run tmux with certain colorschemes

What is the expected behavior?

Display the shell/terminal color similar non-tmux

System information

termux-info:

Termux Variables:
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=3914
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.31.0
Android version:
11
Kernel build information:
Linux localhost 4.14.190-perf-gceaf914a4ae1-dirty #2 SMP PREEMPT Wed Feb 16 22:34:35 WIB 2022 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
Redmi Note 8
@pseudoparenchymatous pseudoparenchymatous added the bug report Something is not working properly label Oct 25, 2022
@agnostic-apollo
Copy link
Member

Check if termux/termux-app#3036 (comment) is the issue.

@pseudoparenchymatous
Copy link
Author

Check if termux/termux-app#3036 (comment) is the issue.

I tried disabling the per app dark mode but it's still the same. Apparently this bug only happens if I make a pane to the right (horizontal split).

@sylirre
Copy link
Member

sylirre commented Oct 26, 2022

Looks like more a shell prompt formatting issue.

Can't reproduce the issue.
Screenshot_20221026-224207

@sylirre sylirre added not reproducible / bug report and removed bug report Something is not working properly labels Oct 26, 2022
@pseudoparenchymatous
Copy link
Author

Looks like more a shell prompt formatting issue.

Can't reproduce the issue. Screenshot_20221026-224207

How does yours look like if you do this (try light themes)?

Screenrecorder-2022-10-27-04-36-38-477.mp4

@sylirre
Copy link
Member

sylirre commented Oct 27, 2022

As I said, no issues in Tmux:

tmux_record_01.mp4

Try different shell like bash or dash via chsh (make sure no fancy prompts there) and try using tmux again.

@pseudoparenchymatous
Copy link
Author

pseudoparenchymatous commented Oct 30, 2022

You're right, zsh is breaking this (even running zsh -f). Should I change this to zsh bug instead of tmux?

@sylirre
Copy link
Member

sylirre commented Oct 31, 2022

I can confirm that terminal gets messed up when zsh is being launched in Tmux horizontal split panel. This happens regardless of screen size.

This can be a Tmux bug as well.

@sylirre sylirre changed the title [Bug]: Tmux colors [Bug]: Tmux horizontal panel messed up when using Zsh Oct 31, 2022
@sylirre sylirre added bug report Something is not working properly and removed not reproducible / bug report labels Oct 31, 2022
@sylirre sylirre changed the title [Bug]: Tmux horizontal panel messed up when using Zsh [Bug]: Tmux horizontal split panel messed up when using Zsh Oct 31, 2022
@xtkoba
Copy link
Contributor

xtkoba commented Dec 8, 2022

I don't really get the point of this issue. Couldn't it be that this is poking a bug of Termux app? In other words, is this reproducible with other terminals, e.g. xfce4-terminal in X11 environment, or any terminal in GNU/Linux environment which Termux is SSHed from?

@sylirre

This comment was marked as outdated.

@sylirre
Copy link
Member

sylirre commented Dec 8, 2022

Can reproduce only in Termux. If connect from laptop to Termux over SSH and try to perform steps to reproduce, everything is fine.

However for some reason issue is partial for me as happens only with light themes. Previously it was reproducible on dark themes too.

combo

@pseudoparenchymatous
Copy link
Author

In the meantime, I stopped using Tmux and instead now using Zellij. Splits are too useful for me. Also, fish shell can reproduce the bug for me when executing clear command in a vertical split.

@stale stale bot added the inactive No activity in a certain period of time label Mar 9, 2023
@GR3YH4TT3R93
Copy link
Contributor

Have you tried adding the following to your tmux config?

set-option -ga terminal-overrides ",xterm-256color:Tc"

@stale stale bot removed the inactive No activity in a certain period of time label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly termux-app
Projects
None yet
5 participants