Skip to content

Commit

Permalink
cpu/client: fix simple error while testing windows term
Browse files Browse the repository at this point in the history
Signed-off-by: Ron Minnich <[email protected]>
  • Loading branch information
rminnich committed Nov 30, 2023
1 parent eed1d1a commit 0447b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func Command(host string, args ...string) *Cmd {
oldState, err := term.MakeRaw(int(os.Stdin.Fd()))
if err == nil {
hasTTY = true
term.Restore(int(os.Stdin.Fd()), oldState)
}
term.Restore(int(os.Stdin.Fd()), oldState)
} else {
hasTTY = true
col, row = c, r
Expand Down

0 comments on commit 0447b57

Please sign in to comment.