From 55757db1d85efb2eee14653012388d032122d441 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 21 Aug 2022 19:03:16 +0800 Subject: [PATCH] opt some --- misc/ssh/connect.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc/ssh/connect.go b/misc/ssh/connect.go index a6533eaf..5d2c2ccc 100644 --- a/misc/ssh/connect.go +++ b/misc/ssh/connect.go @@ -6,7 +6,6 @@ import ( "net" "os" "strings" - "syscall" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/terminal" @@ -86,7 +85,7 @@ func _ssh_dial(m *ice.Message, cb func(net.Conn), arg ...string) { s.RequestPty(kit.Env(cli.TERM), h, w, ssh.TerminalModes{ssh.ECHO: 1, ssh.TTY_OP_ISPEED: 14400, ssh.TTY_OP_OSPEED: 14400}) defer s.Wait() - gdb.SignalNotify(m, syscall.SIGWINCH, func() { + gdb.SignalNotify(m, 28, func() { w, h, _ := terminal.GetSize(int(os.Stdin.Fd())) s.WindowChange(h, w) })