Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into em/add-network-poli…
Browse files Browse the repository at this point in the history
…cies
  • Loading branch information
banjoh committed Sep 3, 2024
2 parents cf33058 + eb28ee6 commit 012c210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ func ShellCmd() *cobra.Command {
defer func() { signal.Stop(ch); close(ch) }()

// Set stdin to raw mode.
oldState, err := term.MakeRaw(int(os.Stdin.Fd()))
oldState, err := term.MakeRaw(syscall.Stdin)
if err != nil {
panic(err)
}
defer func() {
_ = term.Restore(int(os.Stdin.Fd()), oldState)
_ = term.Restore(syscall.Stdin, oldState)
fmt.Printf("sbctl shell exited\n")
}()

Expand Down

0 comments on commit 012c210

Please sign in to comment.