-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
tput cols/tput lines gives wrong results in podman exec
#3903
Comments
@haircommander PTAL |
I used separate terminal, in separate tab in |
thanks for the issue @praiskup I was able to reproduce. I'll look into it |
Interestingly, only the initial size is wrong. If the terminal emulator window is resized afterwards, then it picks up the changes correctly. |
We might not be sending an initial resize message to Conmon |
yeah I found the issue. the initial resize request happens before conmon creates the ctl file, so it just errors out. I am trying to find a work around now |
I just need to claim that this used to work in some previous version of podman (or runc, or whatever). I noticed problems last week for the first time. Btw., thanks for the work-around with window resizing! |
Another workaround is for a shell is to run |
The |
I wonder if there's some race involved here. For some reason this bug stopped reproducing today out of the blue, even with the same software versions that were reliably reproducing it until last Thursday. Anyway, since @haircommander already figured it out, I'll wait for the fix. :) |
@praiskup you are right - I came back to report the same - maybe I had resized the window... |
@haircommander This is fixed, yes? |
yes it should be! |
Closing |
Correct output from
podman run
Wrong output in
exec
from the same container:The text was updated successfully, but these errors were encountered: