mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 05:24:20 +02:00
Fix transmission of async rc commands
This commit is contained in:
@@ -86,6 +86,9 @@ func (self *ShortUUID) Uuid4() (string, error) {
|
||||
|
||||
var HumanUUID *ShortUUID
|
||||
|
||||
func init() {
|
||||
HumanUUID = CreateShortUUID(HUMAN_ALPHABET)
|
||||
func HumanUUID4() (string, error) {
|
||||
if HumanUUID == nil {
|
||||
HumanUUID = CreateShortUUID(HUMAN_ALPHABET)
|
||||
}
|
||||
return HumanUUID.Uuid4()
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ type RemoteControlCmd struct {
|
||||
Payload *interface{} `json:"payload,omitempty"`
|
||||
Timestamp int64 `json:"timestamp,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Async string `json:"async,omitempty"`
|
||||
CancelAsync bool `json:"cancel_async,omitempty"`
|
||||
|
||||
single_sent bool
|
||||
@@ -16,6 +17,7 @@ type RemoteControlCmd struct {
|
||||
|
||||
func (self *RemoteControlCmd) SingleSent() bool { return self.single_sent }
|
||||
func (self *RemoteControlCmd) SetSingleSent() { self.single_sent = true }
|
||||
func (self *RemoteControlCmd) ResetSingleSent() { self.single_sent = false }
|
||||
|
||||
type EncryptedRemoteControlCmd struct {
|
||||
Version [3]int `json:"version"`
|
||||
|
||||
Reference in New Issue
Block a user