mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
switch to signame for cross system compat
This commit is contained in:
parent
46f48a947c
commit
cde8bed381
@ -35,7 +35,7 @@ type FeInputPacketType struct {
|
||||
CK base.CommandKey `json:"ck"`
|
||||
Remote sstore.RemotePtrType `json:"remote"`
|
||||
InputData64 string `json:"inputdata64"`
|
||||
SigNum int `json:"signum,omitempty"`
|
||||
SigName string `json:"signame,omitempty"`
|
||||
WinSize *packet.WinSize `json:"winsize,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -235,10 +235,10 @@ func sendCmdInput(pk *scpacket.FeInputPacketType) error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if pk.SigNum != 0 || pk.WinSize != nil {
|
||||
if pk.SigName != "" || pk.WinSize != nil {
|
||||
siPk := packet.MakeSpecialInputPacket()
|
||||
siPk.CK = pk.CK
|
||||
siPk.SigNum = pk.SigNum
|
||||
siPk.SigName = pk.SigName
|
||||
siPk.WinSize = pk.WinSize
|
||||
err = msh.SendSpecialInput(siPk)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user