Add Resize pty support to client
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
14
process.go
14
process.go
@@ -96,3 +96,17 @@ func (p *process) CloseStdin(ctx context.Context) error {
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *process) IO() *IO {
|
||||
return p.io
|
||||
}
|
||||
|
||||
func (p *process) Resize(ctx context.Context, w, h uint32) error {
|
||||
_, err := p.task.client.TaskService().Pty(ctx, &execution.PtyRequest{
|
||||
ContainerID: p.task.containerID,
|
||||
Width: w,
|
||||
Height: h,
|
||||
Pid: p.pid,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user