-
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
podman client reverses tty rows/colums #9756
Comments
Easy enough to reproduce:
|
case <-winChange:
h, w, err := terminal.GetSize(int(file.Fd()))
if err != nil {
logrus.Warnf("failed to obtain TTY size: %v", err)
}
|
@oblutak @afbjorklund Do you want to open a PR to fix it? |
PR seems easy, but most likely it needs some regression test considering all the "resize" bugs in the current code |
Let's fix this, getting the CI System to work with a TTY would be difficult, |
I made a PR, but got some other fresh new error when trying it...
Something about from containers/storage 1.28.0 containers/storage@6cb8896 Looks like it was added as a feature in Linux 5.9 ? Workaround: ~/.config/containers/storage.conf
UPDATE: Reported as #9783 Seems to work OK. |
@giuseppe ^^ |
@edsantiago came up with this test for the tty size.
|
@Luap99 could you create the PR and use the above test? |
Code change was the easy part, running and testing is harder... |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Using podman client on MacOS, the terminal window is sized 17 rows and 364 columns. When connecting to container in interactive shell, the tty is set for 364 rows and 17 colums
Steps to reproduce the issue:
Describe the results you received:
364 17
Describe the results you expected:
17 364
Additional information you deem important (e.g. issue happens only occasionally):
I am a container and podman newbie....
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
I believe these are the latest available to me. Podman newbie and did not review all of troubleshooting guide.
Using crun as runtime.
Additional environment details (AWS, VirtualBox, physical, etc.):
Linux/centos is VM in private OpenStack
The text was updated successfully, but these errors were encountered: