Pass through SIXEL DCS sequences (treat similarly to the passthrough escape

sequence) if it appears the terminal outside supports them.
This commit is contained in:
Nicholas Marriott
2019-11-28 12:35:18 +00:00
parent e00730d149
commit b34111b3da
7 changed files with 57 additions and 10 deletions

View File

@@ -1671,3 +1671,18 @@ screen_write_rawstring(struct screen_write_ctx *ctx, u_char *str, u_int len)
tty_write(tty_cmd_rawstring, &ttyctx);
}
/* Write unmodified SIXEL data. */
void
screen_write_rawsixel(struct screen_write_ctx *ctx, u_char *str, u_int len,
int more)
{
struct tty_ctx ttyctx;
screen_write_initctx(ctx, &ttyctx);
ttyctx.ptr = str;
ttyctx.num = len;
ttyctx.more = more;
tty_write(tty_cmd_rawsixel, &ttyctx);
}