More work on shell

This commit is contained in:
Kovid Goyal
2022-11-14 15:42:04 +05:30
parent fd36435262
commit 9f2b2eac85
5 changed files with 134 additions and 29 deletions
+4
View File
@@ -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