diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-06-09 12:01:09 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-06-09 12:01:09 +0100 |
commit | 810daefdd14d918e31d297a37c16de94d6fd641d (patch) | |
tree | 7601bc8443bfc5a03cd8e02c6f56058ee2943f80 /tty.c | |
parent | be2eb57d6295a72b870841bbb85e65d624c5d87c (diff) | |
parent | ccc9dc3bb49ac258c856d8478346b4ce829b188e (diff) | |
download | rtmux-810daefdd14d918e31d297a37c16de94d6fd641d.tar.gz rtmux-810daefdd14d918e31d297a37c16de94d6fd641d.tar.bz2 rtmux-810daefdd14d918e31d297a37c16de94d6fd641d.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -671,7 +671,7 @@ static void tty_force_cursor_colour(struct tty *tty, int c) { u_char r, g, b; - char s[13] = ""; + char s[13]; if (c != -1) c = colour_force_rgb(c); @@ -2082,11 +2082,12 @@ tty_cmd_cells(struct tty *tty, const struct tty_ctx *ctx) void tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx) { - tty_set_selection(tty, ctx->ptr, ctx->num); + tty_set_selection(tty, ctx->ptr2, ctx->ptr, ctx->num); } void -tty_set_selection(struct tty *tty, const char *buf, size_t len) +tty_set_selection(struct tty *tty, const char *flags, const char *buf, + size_t len) { char *encoded; size_t size; @@ -2101,7 +2102,7 @@ tty_set_selection(struct tty *tty, const char *buf, size_t len) b64_ntop(buf, len, encoded, size); tty->flags |= TTY_NOBLOCK; - tty_putcode_ptr2(tty, TTYC_MS, "", encoded); + tty_putcode_ptr2(tty, TTYC_MS, flags, encoded); free(encoded); } |