summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-10-25 10:39:48 +0000
committerTiago Cunha <tcunha@gmx.com>2009-10-25 10:39:48 +0000
commit4a87cef46fa010e469b0ee584b96e324d738af48 (patch)
tree7ca2e36ad051925902bfc63c41051a02411edc64 /input.c
parent8c00dc2b6bcedb404de6427178e52f96f9685572 (diff)
Sync OpenBSD patchset 441:
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.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/input.c b/input.c
index 09bd5c20..21b5921a 100644
--- a/input.c
+++ b/input.c
@@ -1,4 +1,4 @@
-/* $Id: input.c,v 1.99 2009-10-23 17:21:34 tcunha Exp $ */
+/* $Id: input.c,v 1.100 2009-10-25 10:39:48 tcunha 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;
}
}
}