diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 10 | ||||
-rw-r--r-- | mbbsd/board.c | 5 | ||||
-rw-r--r-- | mbbsd/read.c | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index de58093e..b02181e8 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -798,10 +798,20 @@ do_post_vote(void) int do_post_openbid(void) { + char ans[4]; boardheader_t *bp; + bp = getbcache(currbid); if (!(bp->brdattr & BRD_VOTEBOARD)) + { + getdata(b_lines - 1, 0, + "確定要公開招標嗎? [y/N] ", + ans, sizeof(ans), LCECHO); + if(ans[0] != 'y') + return FULLUPDATE; + return do_general(1); + } return 0; } diff --git a/mbbsd/board.c b/mbbsd/board.c index 1714218c..dcd9dfb5 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -454,9 +454,10 @@ brdlist_foot(void) static inline char * make_class_color(char *name) { + /* 34 is too dark */ char *colorset[8] = {"", ANSI_COLOR(32), - ANSI_COLOR(33), ANSI_COLOR(36), ANSI_COLOR(34), ANSI_COLOR(1), - ANSI_COLOR(1;32), ANSI_COLOR(1;33)}; + ANSI_COLOR(33), ANSI_COLOR(36), ANSI_COLOR(1;34), + ANSI_COLOR(1), ANSI_COLOR(1;32), ANSI_COLOR(1;33)}; return colorset[(unsigned int) (name[0] + name[1] + diff --git a/mbbsd/read.c b/mbbsd/read.c index 2a4a3c63..6f10aa25 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -702,7 +702,7 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem, (headers[locmem->crs_ln - locmem->top_ln].multi.refer.ref) : locmem->crs_ln, TAG_TOGGLE)) locmem->crs_ln = locmem->crs_ln + 1; - mode = PART_REDRAW; + mode = FULLUPDATE; break; case Ctrl('C'): |