Skip to content

Commit 0f07cb9

Browse files
committed
PTY doesn't extend PTYCmd
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent aa94546 commit 0f07cb9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pty/pty.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ type PTYCmd interface {
3333
// process retains access to _both_ ends of the pseudo-TTY (i.e. `ptm` & `pts`
3434
// on Linux).
3535
type PTY interface {
36-
PTYCmd
36+
io.Closer
37+
38+
// Resize sets the size of the PTY.
39+
Resize(height uint16, width uint16) error
3740

3841
// Name of the TTY. Example on Linux would be "/dev/pts/1".
3942
Name() string

0 commit comments

Comments
 (0)