File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ func (c *Connect) logger(session *ssh.Session) (err error) {
158
158
159
159
func (c * Connect ) setupShell (session * ssh.Session ) (err error ) {
160
160
// set FD
161
- stdin := getStdin ()
161
+ stdin := GetStdin ()
162
162
session .Stdin = stdin
163
163
session .Stdout = os .Stdout
164
164
session .Stderr = os .Stderr
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ import (
11
11
"os"
12
12
)
13
13
14
- func getStdin () io.ReadCloser {
14
+ func GetStdin () io.ReadCloser {
15
15
return os .Stdin
16
16
}
Original file line number Diff line number Diff line change 4
4
//go:build windows
5
5
// +build windows
6
6
7
- // 【参考】
8
- // - https://github.com/tatsushid/minssh/commit/57eae8c5bcf5d94639891f3267f05251f05face4
9
-
10
7
package sshlib
11
8
12
9
import (
@@ -16,7 +13,7 @@ import (
16
13
"golang.org/x/sys/windows"
17
14
)
18
15
19
- func getStdin () io.ReadCloser {
16
+ func GetStdin () io.ReadCloser {
20
17
h := uint32 (windows .STD_INPUT_HANDLE )
21
18
stdin := windowsconsole .NewAnsiReader (int (h ))
22
19
You can’t perform that action at this time.
0 commit comments