diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-01-31 12:01:09 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-01-31 12:01:09 +0000 |
commit | 5fce21728e61b0d2be39f3bc9eba28d5f400f61e (patch) | |
tree | e056480e3d798bf72d99f049f492b73df72d86c1 /grid.c | |
parent | 404379049a4cb5480c2b1c19634c869e46feb220 (diff) | |
parent | fa64b89ad7af8daf04c50b54fe8b45411750149e (diff) | |
download | rtmux-5fce21728e61b0d2be39f3bc9eba28d5f400f61e.tar.gz rtmux-5fce21728e61b0d2be39f3bc9eba28d5f400f61e.tar.bz2 rtmux-5fce21728e61b0d2be39f3bc9eba28d5f400f61e.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -452,6 +452,12 @@ grid_string_cells_fg(const struct grid_cell *gc, int *values) values[n++] = 38; values[n++] = 5; values[n++] = gc->fg; + } else if (gc->flags & GRID_FLAG_FGRGB) { + values[n++] = 38; + values[n++] = 2; + values[n++] = gc->fg_rgb.r; + values[n++] = gc->fg_rgb.g; + values[n++] = gc->fg_rgb.b; } else { switch (gc->fg) { case 0: @@ -493,6 +499,12 @@ grid_string_cells_bg(const struct grid_cell *gc, int *values) values[n++] = 48; values[n++] = 5; values[n++] = gc->bg; + } else if (gc->flags & GRID_FLAG_BGRGB) { + values[n++] = 48; + values[n++] = 2; + values[n++] = gc->bg_rgb.r; + values[n++] = gc->bg_rgb.g; + values[n++] = gc->bg_rgb.b; } else { switch (gc->bg) { case 0: @@ -532,7 +544,7 @@ void grid_string_cells_code(const struct grid_cell *lastgc, const struct grid_cell *gc, char *buf, size_t len, int escape_c0) { - int oldc[16], newc[16], s[32]; + int oldc[64], newc[64], s[128]; size_t noldc, nnewc, n, i; u_int attr = gc->attr; u_int lastattr = lastgc->attr; |