1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-01 19:19:24 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-08-21 19:03:16 +08:00
parent 0ff9e79ac4
commit 55757db1d8

View File

@ -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)
})