diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 8fe518e18..1cb3a526e 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -3969,7 +3969,7 @@ when pressing specified shortcut keys. For example:: This will send "Special text" when you press the :kbd:`Ctrl+Alt+A` key combination. The text to be sent decodes :link:`ANSI C escapes ` -so you can use escapes like :code:`\\\\x1b` to send control codes or :code:`\\\\u21fb` to send +so you can use escapes like :code:`\\\\e` to send control codes or :code:`\\\\u21fb` to send Unicode characters (or you can just input the Unicode characters directly as UTF-8 text). You can use ``kitty +kitten show_key`` to get the key escape codes you want to emulate. diff --git a/kitty/rc/send_text.py b/kitty/rc/send_text.py index 96a3a468b..bdc2e511f 100644 --- a/kitty/rc/send_text.py +++ b/kitty/rc/send_text.py @@ -75,7 +75,7 @@ class SendText(RemoteCommand): desc = ( 'Send arbitrary text to specified windows. The text follows Python' ' escaping rules. So you can use :link:`escapes `' - " like :code:`'\\\\x1b'` to send control codes" + " like :code:`'\\\\e'` to send control codes" " and :code:`'\\\\u21fa'` to send Unicode characters. Remember to use single-quotes otherwise" ' the backslash is interpreted as a shell escape character. If you use the :option:`kitty @ send-text --match` option' ' the text will be sent to all matched windows. By default, text is sent to'