diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-10-12 11:08:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-10-12 11:08:02 +0000 |
commit | 33ae063cae422dc97633ac43a4f8ded43da5c143 (patch) | |
tree | 079f02086805590547548c1e4ce2d25123761e68 /screen-write.c | |
parent | 762459954f1b8f00f93780212053288d6096a611 (diff) |
Permit attributes to be turned off in #[] by prefixing with "no", for example
"noblink".
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c index 507c527b..a0c28575 100644 --- a/screen-write.c +++ b/screen-write.c @@ -347,6 +347,10 @@ screen_write_parsestyle( bg = defgc->bg; } else return; + } else if (end > 2 && strncasecmp(tmp, "no", 2) == 0) { + if ((val = attributes_fromstring(tmp + 2)) == -1) + return; + attr &= ~val; } else { if ((val = attributes_fromstring(tmp)) == -1) return; |