mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Port the mouse_demo kitten to Go
This commit is contained in:
parent
c03dff2322
commit
ee8399ba56
5 changed files with 77 additions and 80 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue