Skip to content

Commit

Permalink
Fixed compilation error on Windows release.
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoathaydes committed Mar 3, 2019
1 parent 09757b6 commit 7662b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func init() {

// remember initial terminal state
var err error
if initialState, err = terminal.GetState(syscall.Stdin); err != nil {
if initialState, err = terminal.GetState(int(syscall.Stdin)); err != nil {
return
}

Expand All @@ -41,7 +41,7 @@ func init() {
go func() {
<-c
println("")
_ = terminal.Restore(syscall.Stdin, initialState)
_ = terminal.Restore(int(syscall.Stdin), initialState)
os.Exit(0)
}()
}
Expand Down

0 comments on commit 7662b56

Please sign in to comment.