summaryrefslogtreecommitdiffstats
path: root/style.c
diff options
context:
space:
mode:
authornicm <nicm>2017-03-22 07:16:54 +0000
committernicm <nicm>2017-03-22 07:16:54 +0000
commitdf3ab87964fc52c6f44b2bbe014c8bec202d0528 (patch)
tree18acb5eb18fa51e177d47eb5e0e828e0322a69ee /style.c
parent04e17a7e110bb0c70bc917b340aedd94fa60891f (diff)
Add support for the strikethrough attribute (SGR 9), using the new smxx
terminfo capability. This means there are now nine attribute bits, so anything above 0xff uses an extended cell.
Diffstat (limited to 'style.c')
-rw-r--r--style.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/style.c b/style.c
index cec1b894..6e78b3a9 100644
--- a/style.c
+++ b/style.c
@@ -31,10 +31,8 @@ style_parse(const struct grid_cell *defgc, struct grid_cell *gc,
struct grid_cell savedgc;
const char delimiters[] = " ,";
char tmp[32];
- int val;
+ int val, fg, bg, attr, flags;
size_t end;
- int fg, bg;
- u_char attr, flags;
if (*in == '\0')
return (0);