diff --git a/src/ChangeLog b/src/ChangeLog index 07c5867ab..3c54cbf61 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +1998-10-30 Sung-Hyun Nam + + * color.c, slint.c: support transparent background if user use + 'default' keyword for background color. + Mon Oct 26 00:31:53 1998 Norbert Warmuth * configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and diff --git a/src/color.c b/src/color.c index 1ce999f26..a4a78697c 100644 --- a/src/color.c +++ b/src/color.c @@ -126,7 +126,8 @@ struct color_table_s color_table [] = { { "cyan", COLOR_CYAN }, { "brightcyan", COLOR_CYAN | A_BOLD }, { "lightgray", COLOR_WHITE }, - { "white", COLOR_WHITE | A_BOLD } + { "white", COLOR_WHITE | A_BOLD }, + { "default", 0 } /* hack for transparent background */ }; #ifdef HAVE_GNOME diff --git a/src/slint.c b/src/slint.c index e61a7f47c..542bfa2fc 100644 --- a/src/slint.c +++ b/src/slint.c @@ -351,6 +351,10 @@ int max_index = 0; void init_pair (int index, char *foreground, char *background) { + /* hack for transparent background for Eterm, rxvt or else */ + if (!strcmp(background, "default")) + background = NULL; + /* if foreground is default, I guess we should use normal fore-color. */ SLtt_set_color (index, "", foreground, background); if (index > max_index)