More work on porting themes

This commit is contained in:
Kovid Goyal
2023-03-13 21:31:09 +05:30
parent c4731771ac
commit 21954937fb
5 changed files with 616 additions and 10 deletions

View File

@@ -74,6 +74,11 @@ func main(_ *cli.Command, opts *Options, args []string) (rc int, err error) {
lp.SetCursorVisible(true)
return ``
}
lp.OnResize = func(_, _ loop.ScreenSize) error {
h.draw_screen()
return nil
}
lp.OnKeyEvent = h.on_key_event
err = lp.Run()
if err != nil {
return 1, err