diff options
-rw-r--r-- | mbbsd/bbs.c | 8 | ||||
-rw-r--r-- | mbbsd/pmore.c | 12 |
2 files changed, 11 insertions, 9 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index f644aae0..a853371b 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -330,8 +330,10 @@ readdoent(int num, fileheader_t * ent) type = '+'; break; case 2: // unread (modified) - type = '+'; - typeattr = ANSI_COLOR(1;30); + // why not use +? because some terminals may not easily + // see highlights easily + type = '~'; + // typeattr = ANSI_COLOR(1;30); break; default: break; @@ -417,7 +419,7 @@ readdoent(int num, fileheader_t * ent) */ prints("%7d", num); - prints(" %s%c" ESC_STR " [0;1;3%4.4s" ANSI_RESET, + prints(" %s%c" ESC_STR "[0;1;3%4.4s" ANSI_RESET, typeattr, type, recom); if(IS_LISTING_MONEY) diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 00e02992..e96510a8 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -2580,7 +2580,7 @@ int mf_moviePromptOptions( int isel, int maxsel, int key, - char *text, unsigned int szText) + unsigned char *text, unsigned int szText) { #define OPTATTR_NORMAL ANSI_COLOR(0;34;47) #define OPTATTR_NORMAL_KEY ANSI_COLOR(0;31;47) @@ -2588,7 +2588,7 @@ mf_moviePromptOptions( #define OPTATTR_SELECTED_KEY ANSI_COLOR(0;31;46) #define OPTATTR_BAR ANSI_COLOR(0;1;30;47) - char *s = text; + unsigned char *s = text; int printlen = 0; // determine if we need seperator if (maxsel) @@ -2631,8 +2631,8 @@ mf_moviePromptOptions( else { // default option text - text = "¡¸"; - szText = strlen(text); + text = (unsigned char*)"¡¸"; + szText = ustrlen(text); } if (szText) @@ -2641,7 +2641,7 @@ mf_moviePromptOptions( outs(OPTATTR_SELECTED); else outs(OPTATTR_NORMAL); - outs_n(text, szText); + outs_n((char*)text, szText); printlen += szText; } @@ -3068,7 +3068,7 @@ mf_movieOptionHandler(unsigned char *opt, unsigned char *end) promptlen += mf_moviePromptOptions( isel, maxsel, key, - (char*)text, szText); + text, szText); } // handle selection |