Use ANSI C escapes rather than python string literals

This commit is contained in:
Kovid Goyal
2022-11-25 19:10:15 +05:30
parent ac60715ee2
commit 402c8b6803
4 changed files with 8 additions and 7 deletions

View File

@@ -74,8 +74,9 @@ class SendText(RemoteCommand):
short_desc = 'Send arbitrary text to specified windows'
desc = (
'Send arbitrary text to specified windows. The text follows Python'
' escaping rules. So you can use escapes like :code:`\\\\x1b` to send control codes'
' and :code:`\\\\u21fa` to send unicode characters. If you use the :option:`kitty @ send-text --match` option'
' 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'
' and :code:`\\\\u21fa` to send Unicode characters. 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'
' only the currently active window.'
)