diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-06-03 19:37:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-06-03 19:37:27 +0000 |
commit | 3f16fcb30ab9865cb5cddb215da34842e1b8b5fe (patch) | |
tree | 5383aeac462d172c979aa17dd3391ad5ab11f1e2 /cmd-server-info.c | |
parent | 2faec76afad7f1a2e4096d04d1d894dcfb646cbf (diff) |
Use vis(3) instead of handrolled function.
Diffstat (limited to 'cmd-server-info.c')
-rw-r--r-- | cmd-server-info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c index 94373f01..2ce44841 100644 --- a/cmd-server-info.c +++ b/cmd-server-info.c @@ -23,6 +23,7 @@ #include <string.h> #include <time.h> #include <unistd.h> +#include <vis.h> #include "tmux.h" @@ -156,8 +157,8 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) ent->code, ent->name); break; case TTYCODE_STRING: - clean_string( - code->value.string, out, sizeof out); + strnvis(out, code->value.string, sizeof out, + VIS_OCTAL|VIS_TAB|VIS_NL); ctx->print(ctx, "%2u: %s: (string) %s", ent->code, ent->name, out); break; |