diff options
author | nicm <nicm> | 2017-03-24 14:45:00 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-03-24 14:45:00 +0000 |
commit | b9a4beb6e7d8467bf34c187aebaec794673e6efd (patch) | |
tree | 1a8a58ce647ef2f2f8b05f888f5c2c19c1f9627d | |
parent | 591b26e46f48f2e6b59f97e6cfb037c6fec48e15 (diff) | |
download | rtmux-b9a4beb6e7d8467bf34c187aebaec794673e6efd.tar.gz rtmux-b9a4beb6e7d8467bf34c187aebaec794673e6efd.tar.bz2 rtmux-b9a4beb6e7d8467bf34c187aebaec794673e6efd.zip |
Write raw strings in one go rather than character at a time.
-rw-r--r-- | tty.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1228,11 +1228,7 @@ tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx) void tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx) { - u_int i; - u_char *str = ctx->ptr; - - for (i = 0; i < ctx->num; i++) - tty_putc(tty, str[i]); + tty_add(tty, ctx->ptr, ctx->num); tty_invalidate(tty); } |