Build for Solaris

Refresh pty import and add Solaris as a cross compile target
This commit is contained in:
Søren L. Hansen 2021-04-10 23:38:29 -07:00
parent 3b9f472111
commit 4a82d77e0b
4 changed files with 6 additions and 4 deletions

View file

@ -6,7 +6,7 @@ import (
"syscall"
"time"
"github.com/kr/pty"
"github.com/creack/pty"
"github.com/pkg/errors"
)
@ -101,8 +101,8 @@ func (lcmd *LocalCommand) ResizeTerminal(width int, height int) error {
window := pty.Winsize{
Rows: uint16(height),
Cols: uint16(width),
X: 0,
Y: 0,
X: 0,
Y: 0,
}
err := pty.Setsize(lcmd.pty, &window)
if err != nil {