-
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
Added a fuction/method setTerminalsize in Exec.ExecBuilber #3657
base: master
Are you sure you want to change the base?
Added a fuction/method setTerminalsize in Exec.ExecBuilber #3657
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.
Needs 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 |
@@ -368,6 +388,14 @@ private ExecutionBuilder(String namespace, String name, String[] command) { | |||
this.stderr = true; | |||
} | |||
|
|||
public void setTerminalSize(int widthColumns, int heightColumns) throws IOException, ApiException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@@ -92,7 +92,8 @@ public void setApiClient(ApiClient apiClient) { | |||
} | |||
|
|||
/** | |||
* 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
I have added a function in Exec.ExecBuilder class which helps to set the Terminal size.