(height uint16, width uint16)
| 115 | } |
| 116 | |
| 117 | func (p *otherPty) Resize(height uint16, width uint16) error { |
| 118 | return p.control(p.pty, func(fd uintptr) error { |
| 119 | return termios.SetWinSize(fd, &termios.Winsize{ |
| 120 | Winsize: unix.Winsize{ |
| 121 | Row: height, |
| 122 | Col: width, |
| 123 | }, |
| 124 | }) |
| 125 | }) |
| 126 | } |
| 127 | |
| 128 | func (p *otherPty) Close() error { |
| 129 | p.mutex.Lock() |