mirror of
https://github.com/yudai/gotty.git
synced 2026-02-08 09:24:21 +01:00
Build for Solaris
Refresh pty import and add Solaris as a cross compile target
This commit is contained in:
parent
3b9f472111
commit
4a82d77e0b
4 changed files with 6 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue