mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Add a callback for wakeups
This commit is contained in:
@@ -78,6 +78,9 @@ type Loop struct {
|
||||
|
||||
// Called when resuming from a SIGTSTP or Ctrl-z
|
||||
OnResumeFromStop func() error
|
||||
|
||||
// Called when main loop is woken up
|
||||
OnWakeup func() error
|
||||
}
|
||||
|
||||
func New(options ...func(self *Loop)) (*Loop, error) {
|
||||
|
||||
Reference in New Issue
Block a user