File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ import (
11
11
"github.com/pion/webrtc/v3"
12
12
"github.com/spf13/cobra"
13
13
gossh "golang.org/x/crypto/ssh"
14
+ "golang.org/x/term"
14
15
"golang.org/x/xerrors"
15
16
16
- "golang.org/x/crypto/ssh/terminal"
17
-
18
17
"github.com/coder/coder/cli/cliflag"
19
18
"github.com/coder/coder/cli/cliui"
20
19
"github.com/coder/coder/coderd/database"
@@ -131,12 +130,12 @@ func ssh() *cobra.Command {
131
130
}
132
131
133
132
if isatty .IsTerminal (os .Stdout .Fd ()) {
134
- state , err := terminal .MakeRaw (int (os .Stdin .Fd ()))
133
+ state , err := term .MakeRaw (int (os .Stdin .Fd ()))
135
134
if err != nil {
136
135
return err
137
136
}
138
137
defer func () {
139
- _ = terminal .Restore (int (os .Stdin .Fd ()), state )
138
+ _ = term .Restore (int (os .Stdin .Fd ()), state )
140
139
}()
141
140
}
142
141
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ require (
236
236
go.opencensus.io v0.23.0 // indirect
237
237
golang.org/x/mod v0.5.1 // indirect
238
238
golang.org/x/net v0.0.0-20220325170049-de3da57026de // indirect
239
- golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
239
+ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
240
240
golang.org/x/text v0.3.7 // indirect
241
241
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 // indirect
242
242
golang.org/x/tools v0.1.9 // indirect
You can’t perform that action at this time.
0 commit comments