Update docs to use \e instead of \x1b for esc since we now support it
This commit is contained in:
parent
375fa73826
commit
c54a4021ef
@ -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 <https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html>`
|
||||
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.
|
||||
|
||||
@ -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 <https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html>`'
|
||||
" 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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user