MCPcopy Create free account
hub / github.com/coder/coder / Resize

Method Resize

pty/pty_other.go:117–126  ·  view source on GitHub ↗
(height uint16, width uint16)

Source from the content-addressed store, hash-verified

115}
116
117func (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
128func (p *otherPty) Close() error {
129 p.mutex.Lock()

Callers

nothing calls this directly

Calls 1

controlMethod · 0.95

Tested by

no test coverage detected