ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.364 by sf-exg, Mon Jan 9 15:30:17 2012 UTC vs.
Revision 1.365 by sf-exg, Mon Jan 9 15:45:45 2012 UTC

944 944
945/*----------------------------------------------------------------------*/ 945/*----------------------------------------------------------------------*/
946/* 946/*
947 * find if fg/bg matches any of the normal (low-intensity) colors 947 * find if fg/bg matches any of the normal (low-intensity) colors
948 */ 948 */
949void 949char *
950rxvt_term::set_colorfgbg () 950rxvt_term::get_colorfgbg ()
951{ 951{
952 unsigned int i; 952 unsigned int i;
953 const char *xpmb = ""; 953 const char *xpmb = "";
954 char fstr[] = "default"; 954 char fstr[] = "default";
955 char bstr[] = "default"; 955 char bstr[] = "default";
956 char *env_colorfgbg;
956 957
957 for (i = Color_Black; i <= Color_White; i++) 958 for (i = Color_Black; i <= Color_White; i++)
958 if (pix_colors[Color_fg] == pix_colors[i]) 959 if (pix_colors[Color_fg] == pix_colors[i])
959 { 960 {
960 sprintf (fstr, "%d", i - Color_Black); 961 sprintf (fstr, "%d", i - Color_Black);
969 xpmb = "default;"; 970 xpmb = "default;";
970#endif 971#endif
971 break; 972 break;
972 } 973 }
973 974
975 env_colorfgbg = (char *)rxvt_malloc (sizeof ("COLORFGBG=default;default;bg"));
974 sprintf (env_colorfgbg, "COLORFGBG=%s;%s%s", fstr, xpmb, bstr); 976 sprintf (env_colorfgbg, "COLORFGBG=%s;%s%s", fstr, xpmb, bstr);
977 return env_colorfgbg;
975} 978}
976 979
977/*----------------------------------------------------------------------*/ 980/*----------------------------------------------------------------------*/
978 981
979bool 982bool

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines