add per-pane display ownership
This commit is contained in:
@@ -742,6 +742,22 @@ func (s *Session) ResizeAll(cols, rows uint16) {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Session) ResizeChild(id string, cols, rows uint16) {
|
||||
if cols == 0 || rows == 0 {
|
||||
return
|
||||
}
|
||||
c := s.FindChild(id)
|
||||
if c == nil {
|
||||
return
|
||||
}
|
||||
if pty := c.PTY(); pty != nil {
|
||||
_ = pty.Resize(cols, rows)
|
||||
}
|
||||
if em := c.Emulator(); em != nil {
|
||||
_ = em.Resize(cols, rows)
|
||||
}
|
||||
}
|
||||
|
||||
// SerializeChild returns the VT bytes that reproduce the child's
|
||||
// current screen state. Used to repaint a child after the user switches
|
||||
// focus or closes the palette.
|
||||
|
||||
Reference in New Issue
Block a user