Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.61k stars 575 forks source link

Issues with tmux when there is a single pane #1159

Closed raghur closed 5 years ago

raghur commented 7 years ago

Versions

ConEmu build: 170517x64 OS version: Windows Windows 8.1 x64 Used shell version: MSYS2 with conemu-msys2-64.exe

set MSYSTEM=MSYS & set MSYS2_PATH_TYPE=inherit & set HOME=c:\users\raghuramanr & d:\msys64\usr\bin\conemu-msys2-64.exe usr\bin\zsh -i -l

Problem description

display issues when using tmux with single pane on remote linux host Tmux issues (Opened MSYS2 console, and ssh'ed into remote linux console and running tmux there)

  1. With a single pane inside tmux, the status bar disappears
  2. Carriage return or command not producing full screen output disappears.
  3. If I split tmux vertically, then the status bar displays properly and command output is also shown.

Thanks for ConEmu and reading through this... ConEmu's

an indispensable tool. Please let me know if you need any more info.

conemu-tmux

Expected results

Expect ConEmu to work properly inside tmux session

unpairedbracket commented 6 years ago

I've just discovered that I also see this issue with ConEmu build: 180206 (64) OS Version: Windows 10 x64, build 17134 Shell: WSL with wslbridge set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C~ -cur_console:pnm:/mnt -t zsh Interestingly I only see this with zsh inside tmux, bash is fine. I also do not see this problem without wslbridge - if I set the command for a task to simply run debian.exe the problem does not occur (though lots of other things are worse, of course).

Also, the issue arises with any activity in a full-width tmux pane (not just in single-pane instances, i.e. if the screen is split top and bottom, splitting only one pane horizontally does not help, but splitting both does) and scrolling the mouse in the problematic pane seems to cause a re-render as the status bar and all of the invisible text reappears temporarily. I hope these extra details prove useful.

I notice there hasn't been any response to this for nearly 12 months, is there any sign of what the problem could be?

Maximus5 commented 6 years ago

@unpairedbracket Is there any sense to complain on build released almost four months ago?

unpairedbracket commented 6 years ago

My bad, ConEmu was set to notify for latest stable release but I hadn't realised that there hasn't been a stable release since December 2016. This seems to have been fixed as of 180528, so you might want to close this issue.

Maximus5 commented 6 years ago

@raghur If you still experience the problem let us know

raghur commented 6 years ago

@Maximus5 - it's improved but there are still rendering issues when using ConEmu to ssh into a box and using tmux there.. For ex, here's one image - the date bit from tmux's status line shows up under the prompt after running ls

image

ConEmu Version - 180528 preview

Maximus5 commented 6 years ago

Please make console log file with screenshot demonstrating the problem https://conemu.github.io/en/AnsiLogFiles.html#connector

raghur commented 6 years ago

2018-05-30 14_42_04- conemu.zip

Screenshot - same as above... along with log files from conemu and connector.

OmarArain commented 5 years ago

I have run into a similar issue... when I call zsh from tmux within Cmder/ConEmu, the status line shows up below the cursor. FYI, I am using Cmder on Windows10, with zsh on Windows Subsystem for Linux, when I use tmux. See screenshot and log files attached. cmder_tmux_zsh_bug connector-4660-in.log connector-4660-out.log

raghur commented 5 years ago

I can also confirm the issue in the comment above.

techexo commented 5 years ago

@Maximus5 I confirm the issue above with zsh in tmux, using Conemu 190108: image

Launching ls command: image

connector-9928-out.log connector-9928-in.log

tmux launched directly in WSL terminal emulator works as intended.

techexo commented 5 years ago

Please note that it is only partially due to zsh. Indeed, the issue doesn't appears at first with bash: image

but clearing the terminal with C-l is also broken: image

connector-8416-out.log connector-8416-in.log

techexo commented 5 years ago

As stated in #1775, the issue appears on tmux 2.8 but not on 2.3, running Debian WSL.

Maximus5 commented 5 years ago

190217?

techexo commented 5 years ago

@Maximus5 The issue with the leading blank line is solved with 190217 as far as I'm concerned.

trailblazing commented 1 year ago

I have a similar problem on Linux Related Links :

https://github.com/Maximus5/cygwin-connector/issues/32

Bypass :

https://github.com/rcx/conemu-terminfo

What I did was:

Export the terminfo file

infocmp -L1 screen-256color > /mnt/screen-256color.info

Comment out the key line where parm_index is located in the exported file and recompile it

tic /mnt/screen-256color.info

The default compiled file is placed under $HOME/.terminfo/