summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/pfterm.c4
-rw-r--r--mbbsd/stuff.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/pfterm.c b/mbbsd/pfterm.c
index 914aaa9b..92539bbb 100644
--- a/mbbsd/pfterm.c
+++ b/mbbsd/pfterm.c
@@ -1505,11 +1505,13 @@ fterm_chattr(char *s, ftattr oattr, ftattr nattr)
// so if these settings are changed then we must reset.
// another case is changing background to default background -
// better use "RESET" to override it.
+ // Same for foreground.
// Possible optimization: when blink/bold on, don't RESET
// for background change?
if ((oblink != blink && !blink) ||
(obold != bold && !bold) ||
- (bg == FTATTR_DEFAULT_BG && obg != bg) )
+ (bg == FTATTR_DEFAULT_BG && obg != bg) ||
+ (fg == FTATTR_DEFAULT_FG && ofg != fg) )
{
if (lead) lead = 0; else *s++ = ';';
*s++ = '0';
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index 958e34f7..bc7a5ef0 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -322,9 +322,9 @@ static const char *msg_pressanykey_full =
ANSI_COLOR(37;44) " 請按" ANSI_COLOR(36) " 任意鍵 " ANSI_COLOR(37) "繼續 " ANSI_COLOR(34);
#define msg_pressanykey_full_len (18)
+ // what is 200/1431/506/201?
static const char* msg_pressanykey_trail =
- ANSI_COLOR(33;46) " " ANSI_COLOR(200) ANSI_COLOR(1431) ANSI_COLOR(506)
- "[按任意鍵繼續]" ANSI_COLOR(201) " " ANSI_RESET;
+ ANSI_COLOR(33;46) " [按任意鍵繼續] " ANSI_RESET;
#define msg_pressanykey_trail_len (16+1+4) /* 4 for head */
int
@@ -357,7 +357,7 @@ vmsg(const char *msg)
for (i = 0; i <= pad-2; i += 2)
outs("▄");
if (i == pad-1)
- outc(' ');
+ outs(" ");
}
outs(ANSI_RESET);
} else {