--- doc/mpc.1 | 2 ++ src/format.c | 4 ++++ 2 files changed, 6 insertions(+)
diff --git a/doc/mpc.1 b/doc/mpc.1 index e0b9078..54084da 100644 --- a/doc/mpc.1 +++ b/doc/mpc.1 @@ -66,6 +66,8 @@ This command also takes the following defined escape sequences: .br \\b - backspace .br +\\e - escape +.br \\t - tab .br \\n - newline diff --git a/src/format.c b/src/format.c index 66243c8..01bd783 100644 --- a/src/format.c +++ b/src/format.c @@ -146,6 +146,10 @@ format_object2(const char *format, const char **last, const void *object, ltemp = '\b'; break; + case 'e': + ltemp = '\033'; + break; + case 't': ltemp = '\t'; break; -- Dmitri Vereshchagin _______________________________________________ mpd-devel mailing list mpd-devel@musicpd.org http://mailman.blarg.de/listinfo/mpd-devel