Added a fuction/method setTerminalsize in Exec.ExecBuilber#3657
Added a fuction/method setTerminalsize in Exec.ExecBuilber#3657sriganeshres wants to merge 1 commit intokubernetes-client:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sriganeshres The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
The committers listed above are authorized under a signed CLA. |
|
Welcome @sriganeshres! |
|
related to #3641 |
| this.stderr = true; | ||
| } | ||
|
|
||
| public void setTerminalSize(int widthColumns, int heightColumns) throws IOException, ApiException { |
There was a problem hiding this comment.
This isn't quite correct. What you need to do is to add a setTerminalSize(...) method to the Exec class, that method can only run once execute() has been called and the connection is established.
|
|
||
| /** | ||
| * Get a {@link Consumer<Throwable>} that will be accepted if there is any unhandled exception | ||
| * Get a {@link Consumer<Throwable>} that will be accepted if there is any |
There was a problem hiding this comment.
Please revert all formatting changes here and below.
|
Thanks for starting this. Two notes: Second, this change isn't quite correct, you need to add a utility method to the |
|
Sorry @brendandburns for very very late response. But can you guide me more than just that im facing a bit of issue here while trying to maintain that it should be able to be run after execute(). Thanks for the support till now. |
|
Closing this in favor of #3801 @sriganeshres thanks for getting this started. If you want to see how I suggested making the changes please check out the diff in #3801 |
I have added a function in Exec.ExecBuilder class which helps to set the Terminal size.