summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c26
-rw-r--r--mbbsd/convert.c7
-rw-r--r--mbbsd/user.c4
3 files changed, 30 insertions, 7 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 = '=';
+ }
+ }
}
}
}
diff --git a/mbbsd/convert.c b/mbbsd/convert.c
index acb61c03..e5d0f07b 100644
--- a/mbbsd/convert.c
+++ b/mbbsd/convert.c
@@ -94,7 +94,10 @@ norm_input(void *buf, ssize_t icount)
read_write_type write_type = (read_write_type)write;
read_write_type read_type = read;
convert_type input_type = norm_input;
-int bbs_convert_type = CONV_NORMAL;
+
+// enable this in case some day we want to detect
+// current type. but right now disable for less memory cost
+// int bbs_convert_type = CONV_NORMAL;
void set_converting_type(int which)
{
@@ -114,7 +117,7 @@ void set_converting_type(int which)
write_type = utf8_write;
input_type = utf8_input;
}
- bbs_convert_type = which;
+ // bbs_convert_type = which;
}
#endif
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 7fcfb6c6..29b6d030 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -326,6 +326,8 @@ void Customize(void)
/* cuser.uflag settings */
static const unsigned int masks1[] = {
MOVIE_FLAG,
+ NO_MODMARK_FLAG ,
+ COLORED_MODMARK,
#ifdef DBCSAWARE
DBCSAWARE_FLAG,
#endif
@@ -334,6 +336,8 @@ void Customize(void)
static const char* desc1[] = {
"動態看板",
+ "隱藏文章修改符號(推文/修文) (~)",
+ "改用彩色修改符號 (+)",
#ifdef DBCSAWARE
"自動偵測雙位元字集(如全型中文)",
#endif