$Log$
+ Revision 570.15 2000/04/08 03:58:12 nbryant
+ * backed out the previous changes since they didn't look good on some
+ xterms with a blue bold mode. just set the background color to black
+ instead. this makes black-on-white terminals actually readable, if not
+ particularly good looking.
+
Revision 570.14 2000/04/08 01:36:30 nbryant
* citadel.c, commands.c: comment out cls() as this wasn't called if
ansi_color=user anyway, and we have no way of knowing whether the user's
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
-
get_serv_info();
look_for_ansi();
- /* cls(0); */
+ cls(0);
color(7);
printf("%-22s\n%s\n%s\n", serv_info.serv_software, serv_info.serv_humannode,
current_color = colornum;
if (enable_color) {
- /* Don't switch to black or white explicitly as this confuses
- * black-on-white terminals. Instead, output the "original
- * pair" sequence.
+ /* When switching to dim white, actually output an 'original
+ * pair' sequence -- this looks better on black-on-white
+ * terminals.
*/
- if ((colornum & 7) == DIM_WHITE || (colornum & 7) == DIM_BLACK)
+ if (colornum == DIM_WHITE)
printf("\033[39;49m");
else
- printf("\033[3%dm", (colornum & 7));
+ printf("\033[3%d;40m", (colornum & 7));
if ((colornum >= 8) && (is_bold == 0)) {
printf("\033[1m");
}
}
-#if 0
void cls(int colornum)
{
if (enable_color) {
fflush(stdout);
}
}
-#endif
/*