mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Automatic merge from release/2.2.0 -> release/2.3.0
* commit '39dbc8830d69b5e61f82f731227d8ab8f6d9917a':
This commit is contained in:
@@ -12,17 +12,18 @@ import (
|
||||
)
|
||||
|
||||
type Pty struct {
|
||||
Session *SSession
|
||||
Cmd *exec.Cmd
|
||||
Pty *os.File
|
||||
sizeCh chan os.Signal
|
||||
size *pty.Winsize
|
||||
Show bool
|
||||
IsOk bool
|
||||
Buffer string
|
||||
Output string
|
||||
Command string
|
||||
Exit bool
|
||||
Session *SSession
|
||||
Cmd *exec.Cmd
|
||||
Pty *os.File
|
||||
sizeCh chan os.Signal
|
||||
size *pty.Winsize
|
||||
OriginSize *pty.Winsize
|
||||
Show bool
|
||||
IsOk bool
|
||||
Buffer string
|
||||
Output string
|
||||
Command string
|
||||
Exit bool
|
||||
}
|
||||
|
||||
func NewPty(session *SSession) (p *Pty, err error) {
|
||||
@@ -59,6 +60,7 @@ func (p *Pty) startResizeMonitor() {
|
||||
log.Debugf("Resize pty to %#v, cmd: %#v", p.size, p.Cmd)
|
||||
}
|
||||
}
|
||||
p.OriginSize = p.size
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user