summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-23 15:48:39 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-23 15:48:39 +0000
commitc2b8f3b55a15e61ce5d1c601c75eca7a81006e0a (patch)
tree6c6ba08660236b088a7dcaf2b382f70ecc749761 /input.c
parent1f22a199fbecb64ed1ae872c009d5b5408acc95e (diff)
Support the bright fg/bg colour SGR 90-97 and 100-107.
Reported by Tim Allen.
Diffstat (limited to 'input.c')
-rw-r--r--input.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/input.c b/input.c
index ff7990e0..bb6ac496 100644
--- a/input.c
+++ b/input.c
@@ -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;
}
}
}