-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
How to set the terminal stty cols and rows through exec API ? #3641
Comments
This isn't currently supported. You can read resize messages from the stream via We need something like the following in the Javascript client: We'd be happy to take a PR for this support. |
Alternately, you could use
|
@brendandburns I got it, the codes like this:
and it works, thanks. |
Glad it's working. Making this a little easier could be a good first issue, so I'll leave this open in case someone wants to take it on. |
@brendandburns i want to work on this issue. But the problem i cant setup the code properly can you send me the steps to setup the code. |
@sriganeshres the second command is to regenerate the code, you don't need to do that. What you need to do is edit this file:
To add a function like If you need help with git or making a PR, please see instructions here: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request?tool=cli |
thank you @brendandburns |
@brendandburns I have added a PR #3657 for this. Thanks for the help and understanding. |
@sriganeshres thank you. In the future, you can just push new commits to the same branch and this PR will update, you don't need to create a new PR. I will close this PR given the new one. |
Describe the bug
Hey, I want to enter the k8s pod container to run shell commands through web terminal, but I found that after the web terminal page size changed, I cann't synchronize set terminal size through exec API, and the page display is disordered.
Is there any way to set the terminal stty cols and rows ? Thanks a lot
Client Version
18.0.1
Kubernetes Version
v1.28.0
Java Version
Java 8
The text was updated successfully, but these errors were encountered: