diff --git a/doc/MANUAL.html b/doc/MANUAL.html index bae2c55..315f067 100644 --- a/doc/MANUAL.html +++ b/doc/MANUAL.html @@ -110,6 +110,14 @@ insertions tagged with "mh 2016-03-29" and "mh 2016-06-11" come from the latest with no other target defined, use the bookmark page for startup

+
+ -H +
+
+

+ use high-intensity colors +

+
-M
diff --git a/doc/w3m.1 b/doc/w3m.1 index aeed238..55d5d5e 100644 --- a/doc/w3m.1 +++ b/doc/w3m.1 @@ -55,6 +55,9 @@ may take an argument. \fB\-B\fP with no other target defined, use the bookmark page for startup .TP +\fB\-H\fP +use high-intensity colors +.TP \fB\-M\fP monochrome display .TP diff --git a/fm.h b/fm.h index 3480b57..5391ea9 100644 --- a/fm.h +++ b/fm.h @@ -958,6 +958,7 @@ global int override_user_agent init(FALSE); #ifdef USE_COLOR global int useColor init(TRUE); +global int highIntensityColors init(FALSE); global int basic_color init(8); /* don't change */ global int anchor_color init(4); /* blue */ global int image_color init(2); /* green */ diff --git a/main.c b/main.c index 856af6b..c02e56e 100644 --- a/main.c +++ b/main.c @@ -220,6 +220,7 @@ fusage(FILE * f, int err) fprintf(f, " -v visual startup mode\n"); #ifdef USE_COLOR fprintf(f, " -M monochrome display\n"); + fprintf(f, " -H use high-intensity colors\n"); #endif /* USE_COLOR */ fprintf(f, " -N open URL of command line on each new tab\n"); @@ -631,6 +632,8 @@ main(int argc, char **argv) #ifdef USE_COLOR else if (!strcmp("-M", argv[i])) useColor = FALSE; + else if (!strcmp("-H", argv[i])) + highIntensityColors = TRUE; #endif /* USE_COLOR */ else if (!strcmp("-B", argv[i])) load_bookmark = TRUE; diff --git a/rc.c b/rc.c index d335564..0460f9e 100644 --- a/rc.c +++ b/rc.c @@ -97,6 +97,7 @@ static int OptionEncode = FALSE; #define CMT_FOLD_TEXTAREA N_("Fold lines in TEXTAREA") #define CMT_DISP_INS_DEL N_("Display INS, DEL, S and STRIKE element") #define CMT_COLOR N_("Display with color") +#define CMT_HINTENSITY_COLOR N_("Use high-intensity colors") #define CMT_B_COLOR N_("Color of normal character") #define CMT_A_COLOR N_("Color of anchor") #define CMT_I_COLOR N_("Color of image link") @@ -469,6 +470,7 @@ struct param_ptr params1[] = { #ifdef USE_COLOR struct param_ptr params2[] = { {"color", P_INT, PI_ONOFF, (void *)&useColor, CMT_COLOR, NULL}, + {"high-intensity", P_INT, PI_ONOFF, (void *)&highIntensityColors, CMT_HINTENSITY_COLOR, NULL}, {"basic_color", P_COLOR, PI_SEL_C, (void *)&basic_color, CMT_B_COLOR, (void *)colorstr}, {"anchor_color", P_COLOR, PI_SEL_C, (void *)&anchor_color, CMT_A_COLOR, diff --git a/terms.c b/terms.c index 43d14f6..b0a15f7 100644 --- a/terms.c +++ b/terms.c @@ -1678,7 +1678,7 @@ static char * color_seq(int colmode) { static char seqbuf[32]; - sprintf(seqbuf, "\033[%dm", ((colmode >> 8) & 7) + 30); + sprintf(seqbuf, "\033[%dm", ((colmode >> 8) & 7) + (highIntensityColors ? 90 : 30)); return seqbuf; }