mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +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()
|
||||
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()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user