diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-04 03:37:23 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-04 03:37:23 +0800 |
commit | ea5f148819c3986ef751dce5d83d9314f920b10c (patch) | |
tree | 8e07d0610d342b3de83dbc1d9cc83e725a61f34d /mbbsd/bbs.c | |
parent | 64abee05405680452d0e7d8b7237d6de0cb12cdf (diff) | |
download | pttbbs-ea5f148819c3986ef751dce5d83d9314f920b10c.tar pttbbs-ea5f148819c3986ef751dce5d83d9314f920b10c.tar.gz pttbbs-ea5f148819c3986ef751dce5d83d9314f920b10c.tar.bz2 pttbbs-ea5f148819c3986ef751dce5d83d9314f920b10c.tar.lz pttbbs-ea5f148819c3986ef751dce5d83d9314f920b10c.tar.xz pttbbs-ea5f148819c3986ef751dce5d83d9314f920b10c.tar.zst pttbbs-ea5f148819c3986ef751dce5d83d9314f920b10c.zip |
- add option to support both coloured and symboled modification mark (~ and +)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3625 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index a853371b..ad101bb5 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -330,10 +330,18 @@ readdoent(int num, fileheader_t * ent) type = '+'; break; case 2: // unread (modified) - // why not use +? because some terminals may not easily + // why not always +? because some terminals may not easily // see highlights easily - type = '~'; - // typeattr = ANSI_COLOR(1;30); + if (!(cuser.uflag & NO_MODMARK_FLAG)) + { + if (cuser.uflag & COLORED_MODMARK) + { + typeattr = ANSI_COLOR(1;30); + type = '+'; + } else { + type = '~'; + } + } break; default: break; @@ -355,8 +363,16 @@ readdoent(int num, fileheader_t * ent) else if (isunread == 2) { // modified mark - type = 'm'; - typeattr = ANSI_COLOR(36); + if (!(cuser.uflag & NO_MODMARK_FLAG)) + { + if (cuser.uflag & COLORED_MODMARK) + { + typeattr = ANSI_COLOR(36); + type = 'm'; + } else { + type = '='; + } + } } } } |