mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-12 02:42:56 +02:00
More work on shell
This commit is contained in:
@@ -53,6 +53,10 @@ type Loop struct {
|
||||
// the terminal on shutdown
|
||||
OnInitialize func() (string, error)
|
||||
|
||||
// Called just before the loop shuts down. Any returned string is written to the terminal before
|
||||
// shutdown
|
||||
OnFinalize func() string
|
||||
|
||||
// Called when a key event happens
|
||||
OnKeyEvent func(event *KeyEvent) error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user