mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-22 04:14:25 +00:00
Build for Solaris
Refresh pty import and add Solaris as a cross compile target
This commit is contained in:
parent
3b9f472111
commit
4a82d77e0b
2
Makefile
2
Makefile
@ -76,7 +76,7 @@ test:
|
||||
if [ `go fmt $(go list ./... | grep -v /vendor/) | wc -l` -gt 0 ]; then echo "go fmt error"; exit 1; fi
|
||||
|
||||
cross_compile:
|
||||
GOARM=5 gox -os="darwin linux freebsd netbsd openbsd" -arch="386 amd64 arm" -osarch="!darwin/arm" -output "${OUTPUT_DIR}/pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"
|
||||
GOARM=5 gox -os="darwin linux freebsd netbsd openbsd solaris" -arch="386 amd64 arm" -osarch="!darwin/arm" -output "${OUTPUT_DIR}/pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"
|
||||
|
||||
targz:
|
||||
mkdir -p ${OUTPUT_DIR}/dist
|
||||
|
1
NEWS.md
1
NEWS.md
@ -7,4 +7,5 @@
|
||||
* Fix printing of ipv6 addresses (Thanks, @Felixoid!)
|
||||
* Add Progressive Web App support (Thanks, @sehaas!)
|
||||
* Add instructions for GNU screen (Thanks, @Immortalin!)
|
||||
* Add Solaris support (Thanks, @fazalmajid!)
|
||||
* New maintainer: @sorenisanerd
|
||||
|
@ -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…
Reference in New Issue
Block a user