Port the mouse_demo kitten to Go

This commit is contained in:
Kovid Goyal
2023-10-17 20:21:22 +05:30
parent c03dff2322
commit ee8399ba56
5 changed files with 77 additions and 80 deletions

View File

@@ -11,6 +11,7 @@ import (
"kitty/kittens/hints"
"kitty/kittens/hyperlinked_grep"
"kitty/kittens/icat"
"kitty/kittens/mouse_demo"
"kitty/kittens/show_key"
"kitty/kittens/ssh"
"kitty/kittens/themes"
@@ -50,6 +51,15 @@ func KittyToolEntryPoints(root *cli.Command) {
unicode_input.EntryPoint(root)
// show_key
show_key.EntryPoint(root)
// mouse_demo
root.AddSubCommand(&cli.Command{
Name: "mouse_demo",
ShortDescription: "Demo the mouse handling kitty implements for terminal programs",
OnlyArgsAllowed: true,
Run: func(cmd *cli.Command, args []string) (rc int, err error) {
return mouse_demo.Run(args)
},
})
// hyperlinked_grep
hyperlinked_grep.EntryPoint(root)
// ask