From b9a4beb6e7d8467bf34c187aebaec794673e6efd Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 24 Mar 2017 14:45:00 +0000 Subject: [PATCH] Write raw strings in one go rather than character at a time. --- tty.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tty.c b/tty.c index 8792da70..8d54007b 100644 --- a/tty.c +++ b/tty.c @@ -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); }