mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
show-key kitten: Show plain text received not associated with a key event
This commit is contained in:
@@ -62,6 +62,13 @@ func run_kitty_loop(opts *Options) (err error) {
|
|||||||
lp.Println()
|
lp.Println()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
lp.OnText = func(text string, from_key_event bool, in_bracketed_paste bool) error {
|
||||||
|
if from_key_event {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
lp.Printf("%s: %s\n\n", ctx.Green("Text"), text)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
err = lp.Run()
|
err = lp.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user