1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

core: add support of escaped unicode chars in commands /print and "/input insert"

This commit is contained in:
Sebastien Helleu
2014-01-24 12:53:23 +01:00
parent d49c3eaac6
commit 97cede06b5
23 changed files with 459 additions and 285 deletions
+9 -5
View File
@@ -6899,7 +6899,8 @@ command_init ()
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, "
"see /help print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@@ -7116,14 +7117,15 @@ command_init ()
"of tags most commonly used)\n"
" text: text to display (prefix and message must be separated by "
"\\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options "
"\"weechat.look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always "
"interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@@ -7134,6 +7136,8 @@ command_init ()
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"),
"-buffer %(buffers_numbers)|%(buffers_plugins_names)"