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

tty: top-left part of the screen doesn't refresh after window switch #1521

Closed
nycko123 opened this issue Nov 3, 2018 · 11 comments
Closed

tty: top-left part of the screen doesn't refresh after window switch #1521

nycko123 opened this issue Nov 3, 2018 · 11 comments

Comments

@nycko123
Copy link

nycko123 commented Nov 3, 2018

platform

ArchLinux
kernels: 4.19.arch1-1 and custom manually built 4.19 from sources
tmux: 2.8
terminal: tty
shell: bash
outside tmux: printenv TERM = linux
inside tmux: printenv TERM = screen

new test user without any ENVIRONMENTS set

steps to reproduce

  1. start tmux in tty (rich config or without any)
  2. add a pane (vertical or horizontal)
  3. add new window, switch to it and print anything in it (cat a file, journalctl -f, etc.)
  4. switch back to window 0
  5. pane 0 has a part of the output from window 1

logs

tmux -vv -Ltest -f/dev/null new
tmux-server-988.log

exceptions

  • the issue does not exist on above kernels when using xserver terminal emulators
  • the issue does not exist on kernels 4.18.16 and below (tty, xserver)
@nicm
Copy link
Member

nicm commented Nov 3, 2018 via email

@nycko123
Copy link
Author

nycko123 commented Nov 3, 2018

Yes, everything works great on kernels 4.18.16 and below.
Arch's kernel config of 4.19 doesn't differ from the 4.18.16 one, so maybe there was a change in the kernel upstream KMS method or in the way framebuffer works.
I have no knowledge or experience to check that.

I will try to add nomodeset to the kernel which should at least remove KMS as a source of this issue.

EDIT: adding nomodeset to kernel line doesn't fix the issue.
I have to add, that if i have i.e. two windows with only single pane (window 0 + pane 0 and window 1 pane 0), the refreshing after windows switching works OK. The problem exists if any of the windows has more than 1 pane open. The top left one doesn't refresh.

@nicm
Copy link
Member

nicm commented Nov 3, 2018

What do both of these show?

printf 'abcdefghi\033[6D\033[Kxyz\n'
printf 'abcdefghi\033[6D\033[1Kxyz\n'

@nycko123
Copy link
Author

nycko123 commented Nov 3, 2018

screen output

abcxyz
   xyzghi

redirecting output to file gives

abcxyz
abcxyzghi

inside the file

@nicm
Copy link
Member

nicm commented Nov 3, 2018

Seems fine. I don't know then, you will need to ask the kernel maintainers.

@nycko123
Copy link
Author

nycko123 commented Nov 3, 2018

Sure, will do. Thank you for your time.

@nicm nicm closed this as completed Nov 5, 2018
@nycko123
Copy link
Author

nycko123 commented Nov 6, 2018

@nicm
Copy link
Member

nicm commented Nov 6, 2018

Right but it still seems like a kernel bug not a tmux bug, right?

@nycko123
Copy link
Author

nycko123 commented Nov 6, 2018

Seems like it, but I don't know. Could be a bug in kernel or tmux. I cannot do more than what i've already done to point it out being as much helpfull as i could to keep you aware of this issue.

@nicm
Copy link
Member

nicm commented Nov 6, 2018

There is nothing in the tmux logs that shows it sending anything incorrectly, it clears the existing content as expected, in the same way as every other terminal. And there is no way that would change purely based on kernel version. It seems very likely to be a terminal problem. Your best bet is to report it to the terminal maintainers.

If I could reproduce I could try to figure out what escape sequence it is handling incorrectly but there is no point in me faffing around to get a 4.19 kernel just for that.

@lock
Copy link

lock bot commented Feb 15, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants