From 33ae063cae422dc97633ac43a4f8ded43da5c143 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 12 Oct 2009 11:08:02 +0000 Subject: Permit attributes to be turned off in #[] by prefixing with "no", for example "noblink". --- screen-write.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'screen-write.c') 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; -- cgit