mirror of
https://shylinux.com/x/icebergs
synced 2025-05-04 04:17:01 +08:00
opt some
This commit is contained in:
parent
e4a4bbde8f
commit
c05480905c
@ -28,11 +28,6 @@ func _ssh_open(m *ice.Message, arg ...string) {
|
|||||||
defer terminal.Restore(fd, oldState)
|
defer terminal.Restore(fd, oldState)
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb.SignalNotify(m, 28, func() {
|
|
||||||
w, h, _ := terminal.GetSize(fd)
|
|
||||||
_ssh_sizes(os.Stdin.Fd(), w, h)
|
|
||||||
})
|
|
||||||
|
|
||||||
// 设置宽高
|
// 设置宽高
|
||||||
w, h, _ := terminal.GetSize(fd)
|
w, h, _ := terminal.GetSize(fd)
|
||||||
c.Write([]byte(fmt.Sprintf("#height:%d,width:%d\n", h, w)))
|
c.Write([]byte(fmt.Sprintf("#height:%d,width:%d\n", h, w)))
|
||||||
@ -94,11 +89,11 @@ func _ssh_dial(m *ice.Message, cb func(net.Conn), arg ...string) {
|
|||||||
ssh.TTY_OP_OSPEED: 14400,
|
ssh.TTY_OP_OSPEED: 14400,
|
||||||
})
|
})
|
||||||
|
|
||||||
// gdb.SignalNotify(m, 28, func() {
|
gdb.SignalNotify(m, 28, func() {
|
||||||
// w, h, _ := terminal.GetSize(int(os.Stdin.Fd()))
|
w, h, _ := terminal.GetSize(int(os.Stdin.Fd()))
|
||||||
// session.WindowChange(h, w)
|
session.WindowChange(h, w)
|
||||||
// })
|
})
|
||||||
//
|
|
||||||
session.Shell()
|
session.Shell()
|
||||||
session.Wait()
|
session.Wait()
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user