Use VIS_CSTYLE for the arguments and add the missing escapes it can

generate to the parser.
This commit is contained in:
nicm
2019-05-29 20:05:14 +00:00
parent c17edd594e
commit 7dced37673
4 changed files with 18 additions and 3 deletions

View File

@ -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);