aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2016-03-03 12:58:15 +0000
committernicm <nicm>2016-03-03 12:58:15 +0000
commitbcb41a09b3d3f0c61d2e98c0b91fcea52f745efb (patch)
treead966fb5bd8832bbe114198d4c6b3c92a45f8b25 /tty.c
parentb8a102d26f41e57b94359627a4df8f22af10c6fa (diff)
downloadrtmux-bcb41a09b3d3f0c61d2e98c0b91fcea52f745efb.tar.gz
rtmux-bcb41a09b3d3f0c61d2e98c0b91fcea52f745efb.tar.bz2
rtmux-bcb41a09b3d3f0c61d2e98c0b91fcea52f745efb.zip
RGB colours shouldn't be mixed up with aixterm colours, return before
that happens when working out if they are supported.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index c6fc2213..2dff5700 100644
--- a/tty.c
+++ b/tty.c
@@ -1569,6 +1569,8 @@ tty_check_fg(struct tty *tty, struct grid_cell *gc)
gc->flags |= GRID_FLAG_FG256;
gc->fg = colour_find_rgb(rgb->r, rgb->g, rgb->b);
}
+ else
+ return;
}
colours = tty_term_number(tty->term, TTYC_COLORS);
@@ -1612,6 +1614,8 @@ tty_check_bg(struct tty *tty, struct grid_cell *gc)
gc->flags |= GRID_FLAG_BG256;
gc->bg = colour_find_rgb(rgb->r, rgb->g, rgb->b);
}
+ else
+ return;
}
colours = tty_term_number(tty->term, TTYC_COLORS);