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
|
if [ `go fmt $(go list ./... | grep -v /vendor/) | wc -l` -gt 0 ]; then echo "go fmt error"; exit 1; fi
|
||||||
|
|
||||||
cross_compile:
|
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:
|
targz:
|
||||||
mkdir -p ${OUTPUT_DIR}/dist
|
mkdir -p ${OUTPUT_DIR}/dist
|
||||||
|
1
NEWS.md
1
NEWS.md
@ -7,4 +7,5 @@
|
|||||||
* Fix printing of ipv6 addresses (Thanks, @Felixoid!)
|
* Fix printing of ipv6 addresses (Thanks, @Felixoid!)
|
||||||
* Add Progressive Web App support (Thanks, @sehaas!)
|
* Add Progressive Web App support (Thanks, @sehaas!)
|
||||||
* Add instructions for GNU screen (Thanks, @Immortalin!)
|
* Add instructions for GNU screen (Thanks, @Immortalin!)
|
||||||
|
* Add Solaris support (Thanks, @fazalmajid!)
|
||||||
* New maintainer: @sorenisanerd
|
* New maintainer: @sorenisanerd
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kr/pty"
|
"github.com/creack/pty"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -101,8 +101,8 @@ func (lcmd *LocalCommand) ResizeTerminal(width int, height int) error {
|
|||||||
window := pty.Winsize{
|
window := pty.Winsize{
|
||||||
Rows: uint16(height),
|
Rows: uint16(height),
|
||||||
Cols: uint16(width),
|
Cols: uint16(width),
|
||||||
X: 0,
|
X: 0,
|
||||||
Y: 0,
|
Y: 0,
|
||||||
}
|
}
|
||||||
err := pty.Setsize(lcmd.pty, &window)
|
err := pty.Setsize(lcmd.pty, &window)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
1
go.mod
1
go.mod
@ -4,6 +4,7 @@ go 1.13
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/NYTimes/gziphandler v1.1.1
|
github.com/NYTimes/gziphandler v1.1.1
|
||||||
|
github.com/creack/pty v1.1.7
|
||||||
github.com/elazarl/go-bindata-assetfs v1.0.0
|
github.com/elazarl/go-bindata-assetfs v1.0.0
|
||||||
github.com/fatih/structs v1.1.0
|
github.com/fatih/structs v1.1.0
|
||||||
github.com/gorilla/websocket v1.4.1
|
github.com/gorilla/websocket v1.4.1
|
||||||
|
Loading…
Reference in New Issue
Block a user