aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-29 20:05:14 +0000
committernicm <nicm>2019-05-29 20:05:14 +0000
commit7dced376737ef685e09fd5a49161ca2bf423e91b (patch)
tree6f8d776bf67584d497386832b172132cd8703dbf /tty-term.c
parentc17edd594e8088d2355102a8ca58f4b256c59397 (diff)
downloadrtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.tar.gz
rtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.tar.bz2
rtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.zip
Use VIS_CSTYLE for the arguments and add the missing escapes it can
generate to the parser.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index 45934afa..83bfcdc1 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -685,7 +685,7 @@ tty_term_describe(struct tty_term *term, enum tty_code_code code)
break;
case TTYCODE_STRING:
strnvis(out, term->codes[code].value.string, sizeof out,
- VIS_OCTAL|VIS_TAB|VIS_NL);
+ VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL);
xsnprintf(s, sizeof s, "%4u: %s: (string) %s",
code, tty_term_codes[code].name,
out);