zsh-workers
 help / color / mirror / code / Atom feed
From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: [PATCH] Doc: escape sequences recognized by print and bindkey
Date: Thu, 5 Mar 2015 01:35:03 +0900	[thread overview]
Message-ID: <C0A60070-2D54-4235-AD75-1185506509AA@kba.biglobe.ne.jp> (raw)

The following patch tries to clarify which escape sequences
are recognized by the print and bindkey builtins.


diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index d5e3cf2..dd5a80f 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1094,10 +1094,13 @@ item(  [ tt(-R) [ tt(-en) ]] [ var(arg) ... ])(
 With the `tt(-f)' option the arguments are printed as described by tt(printf).
 With no flags or with the flag `tt(-)', the arguments are printed on
 the standard output as described by tt(echo), with the following differences:
-the escape sequence `tt(\M-)var(x)' metafies the character
+the escape sequence `tt(\M-)var(x)' (or `tt(\M)var(x)') metafies the character
 var(x) (sets the highest bit),
-`tt(\C-)var(x)' produces a control character (`tt(\C-@)' and `tt(\C-?)' give the
-characters NUL and delete), and `tt(\E)' is a synonym for `tt(\e)'.
+`tt(\C-)var(x)' (or `tt(\C)var(x)') produces a control character
+(`tt(\C-@)' and `tt(\C-?)' give the characters NULL and delete),
+a character code in octal is represented by `tt(\)var(NNN)'
+(instead of `tt(\0)var(NNN)'),
+and `tt(\E)' is a synonym for `tt(\e)'.
 Finally, if not in an escape
 sequence, `tt(\)' escapes the following character and is not printed.
 
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index dd8e628..ab56e35 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -312,6 +312,8 @@ sitem(tt(\t))(horizontal tab)
 sitem(tt(\v))(vertical tab)
 sitem(tt(\)var(NNN))(character code in octal)
 sitem(tt(\x)var(NN))(character code in hexadecimal)
+sitem(tt(\u)var(NNNN))(unicode character code in hexadecimal)
+sitem(tt(\U)var(NNNNNNNN))(unicode character code in hexadecimal)
 sitem(tt(\M)[tt(-)]var(X))(character with meta bit set)
 sitem(tt(\C)[tt(-)]var(X))(control character)
 sitem(tt(^)var(X))(control character)



                 reply	other threads:[~2015-03-04 17:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C0A60070-2D54-4235-AD75-1185506509AA@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).