Synthesize click events in the loop

This commit is contained in:
Kovid Goyal
2023-03-07 07:57:14 +05:30
parent 5c87d7f84f
commit e043fef257
3 changed files with 40 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ import (
"encoding/base64"
"fmt"
"kitty/tools/tty"
"kitty/tools/utils"
"strings"
"time"
@@ -56,6 +57,7 @@ type Loop struct {
timer_id_counter, write_msg_id_counter IdType
wakeup_channel chan byte
pending_writes []*write_msg
pending_mouse_events *utils.RingBuffer[MouseEvent]
on_SIGTSTP func() error
// Suspend the loop restoring terminal state. Call the return resume function to restore the loop