Automatic merge from release/2.2.0 -> release/2.3.0

* commit '39dbc8830d69b5e61f82f731227d8ab8f6d9917a':
This commit is contained in:
邱剑
2018-10-29 22:38:43 +08:00
2 changed files with 17 additions and 11 deletions
+13 -11
View File
@@ -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
}
}()
}