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
Terminal rows are misaligned when using TMUX over SSH #503
Comments
Applications get the console screen size by calling WIN32 console API. ConsoleZ is only a WIndows Console wrapper, it cannot modify the application behavior. |
Yep, I thought as much. Afterall, Cygterm is emulating a Unix console environment to contain Bash, not a Windows console environment, so things like size determination I understand will have their differences. Therefore I agree the blame is not on ConsoleZ's shoulders. I'm probably not supposed to be running Bash in ConsoleZ, but other than this TMUX issue it works really well, so I'll continue as I am. (I only use Ubuntu in one place anyway, and not by my choice.) Thanks for your feedback. :) |
Why ? Have you tried to fix term variable? |
Thanks for quoting that issue. Looks like encapsulating within ConsoleZ -> SSH -> Screen -> TMUX |
I understand that ConsoleZ is a wrapper and not a shell/terminal itself.
Description
A few months ago I posted an issue to Ask Ubuntu that there was an issue with the buffer when using TMUX causing lines to become misaligned.
The original issue including screen shots: https://askubuntu.com/questions/1048497/terminal-rows-are-misaligned-when-using-tmux-over-ssh
Interestingly this only occurred since I updated the Ubuntu build to 18.04 from 16.04, and that it did not happen with any Debian or CentOS installations. I therefore reported the issue to Ask Ubuntu believing it is an issue with Ubuntu 18.04 and not ConsoleZ. (Because I understand that ConsoleZ is not a terminal/shell itself, only a wrapper.)
However today I used Bash via the Cygwin wrapper instead of ConsoleZ, went into TMUX on Ubuntu 18.04 to check a script I had left running overnight, and noticed it displayed fine. I also noticed that in the Cygwin wrapper the scroll bar had become disabled when entering TMUX, presumably because their wrapper had noticed that the buffer size of the Bash shell within has changed to only 43 without any possibility of having a scrollback. It looks like ConsoleZ still thinks the shell's buffer hasn't lost its scrollback though, which could be responsible for the incorrect output.
This is partly still the case with TMUX in Debian, but the TMUX output on that is always clamped to the top of the buffer with the topmost 43 rows being updated only until TMUX is departed.
This could therefore still be a buffering issue with Ubuntu, but I'm not sure who is responsible for this issue as it only occurs with TMUX on Ubuntu 18.04 displayed through ConsoleZ. (Change either factor Ubuntu 18.04, or ConsoleZ, and the issue is resolved.) If you don't believe this is a ConsoleZ issue I can be satisfied with that.
Both Cygwin and ConsoleZ wrappers are configured to have 10000 lines of scrollback.
Expected Behavior
Rows to be correctly aligned as per the shell's buffer.
Actual Behavior
Rows become misaligned.
Steps to reproduce
CTRL+,
to rename the window, type a window name)Diagnostic Report
I've noticed some immediate inconsistencies with this diagnostic output.
The text was updated successfully, but these errors were encountered: