-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows-ssh.go.diff
43 lines (40 loc) · 1.07 KB
/
windows-ssh.go.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- ssh.go-orig 2022-05-04 12:30:57.514022000 +0300
+++ ssh.go 2022-05-05 15:47:04.874173000 +0300
@@ -10,7 +10,7 @@
"os"
"os/exec"
//not for win?
- "os/signal"
+ //"os/signal"
"os/user"
"path/filepath"
"strings"
@@ -49,7 +49,7 @@
// pass SSH args to external ssh binary
func doSSH(sshKeyPath string, username string, hostname string, port int) {
var sshExternal bool
- sshExternal = true
+ sshExternal = false
if sshExternal {
sshString := fmt.Sprintf("ssh -i %s %s@%s -p%d", sshKeyPath, username, hostname, port)
@@ -135,17 +135,17 @@
signal_chan := make(chan os.Signal, 1)
//not for win?
- signal.Notify(signal_chan, syscall.SIGWINCH)
+ //signal.Notify(signal_chan, syscall.SIGWINCH)
go func() {
for {
s := <-signal_chan
switch s {
//not for win
- case syscall.SIGWINCH:
- fd := int(os.Stdout.Fd())
- w, h, _ = terminal.GetSize(fd)
- session.WindowChange(h, w)
+ //case syscall.SIGWINCH:
+ // fd := int(os.Stdout.Fd())
+ // w, h, _ = terminal.GetSize(fd)
+ // session.WindowChange(h, w)
}
}
}()