diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-23 15:48:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-23 15:48:40 +0000 |
commit | 747e2eb7afb339d1c587f0ca67e6d172fbe6034d (patch) | |
tree | 11793c1cbfea70efb602ff26310b568cbd29e2c1 /usr.bin/tmux | |
parent | ae2d45fc25191c85584c75c9b2cd704cd6f76653 (diff) |
Support the bright fg/bg colour SGR 90-97 and 100-107.
Reported by Tim Allen.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/input.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 66b098ce6f9..223b0d85e55 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.19 2009/10/20 22:17:33 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.20 2009/10/23 15:48:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1470,6 +1470,28 @@ input_handle_sequence_sgr(struct input_ctx *ictx) gc->flags &= ~GRID_FLAG_BG256; gc->bg = 8; break; + case 90: + case 91: + case 92: + case 93: + case 94: + case 95: + case 96: + case 97: + gc->flags |= GRID_FLAG_FG256; + gc->fg = m - 82; + break; + case 100: + case 101: + case 102: + case 103: + case 104: + case 105: + case 106: + case 107: + gc->flags |= GRID_FLAG_BG256; + gc->bg = m - 92; + break; } } } |