--enable-transparency
add support for inheriting parent backgrounds thus giving a fake
transparency to the term
+--enable-tinting
+ add support for tinting of transparent backgrounds.
--enable-menubar
add support for our menu bar system (this interacts badly with
dynamic locale switching currently)
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
+/* Define if you want your background to be tinted */
+#undef TINTING
+
/* Define if you want your background to use the parent window background */
#undef TRANSPARENT
support_frills=no
support_linespace=no
support_inheritpixmap=no
+support_tinting=no
support_keepscrolling=no
support_selectionscrolling=no
support_menubar=no
support_frills=yes
support_linespace=yes
support_inheritpixmap=yes
+ support_tinting=yes
support_keepscrolling=yes
support_selectionscrolling=yes
support_lastlog=yes
support_inheritpixmap=$enableval
fi])
+AC_ARG_ENABLE(tinting,
+ [ --enable-tinting enable tinting of transparent bg],
+ [if test x$enableval = xyes -o x$enableval = xno; then
+ support_tinting=$enableval
+ fi])
+
AC_ARG_ENABLE(menubar,
[ --enable-menubar enable menubar],
[if test x$enableval = xyes -o x$enableval = xno; then
dnl# --------------------------------------------------------------------------
dnl# now add and remove other stuff
dnl# --------------------------------------------------------------------------
+if test x$support_tinting = xyes; then
+ AC_DEFINE(TINTING, 1, Define if you want your background to be tinted)
+fi
if test x$support_inheritpixmap = xyes; then
AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background)
fi
-COMMENT(-- $Id: rxvt-options.yo,v 1.8 2004-03-29 16:52:06 pcg Exp $ --)
+COMMENT(-- $Id: rxvt-options.yo,v 1.9 2004-03-29 21:02:11 pcg Exp $ --)
COMMENT(----------------------------------------------------------------------)
manpageoptions()
Turn on/off inheriting parent window's pixmap. Alternative form
is bf(-tr);
resource bf(inheritPixmap).
+ dit(bf(-tint) em(colour))
+ Tint the transparent background pixmap with the given colour.
dit(bf(-bg) em(colour))
Window background colour;
resource bf(background).
-COMMENT(-- $Id: rxvt-resources.yo,v 1.8 2004-03-29 16:52:06 pcg Exp $ --)
+COMMENT(-- $Id: rxvt-resources.yo,v 1.9 2004-03-29 21:02:11 pcg Exp $ --)
COMMENT(----------------------------------------------------------------------)
manpagesection(RESOURCES (available also as long-options))
bf(True): make the background inherit the parent windows' pixmap,
giving artificial transparency.
bf(False): do not inherit the parent windows' pixmap.
+ dit(bf(tintColor) em(colour))
+ Tint the transparent background pixmap with the given colour.
dit(bf(scrollColor:) em(colour))
Use the specified colour for the scrollbar [default #B2B2B2].
dit(bf(troughColor:) em(colour))
--with-term=rxvt --enable-keepscrolling --enable-xft \
--with-name=rxvt --enable-selectionscrolling \
--enable-frills --enable-swapscreen --enable-transparency \
- --with-codesets=eu,jp --enable-menubar \
+ --with-codesets=eu,jp --enable-menubar --enable-tinting \
--enable-cursor-blink --enable-pointer-blank --enable-text-blink \
--enable-plain-scroll --enable-combining \
"$@"
#include <unistd.h>
#include <fcntl.h>
+class byteorder byteorder;
+
+byteorder::byteorder ()
+{
+ union {
+ uint32_t u;
+ uint8_t b[4];
+ } w;
+
+ w.b[0] = 0x11;
+ w.b[1] = 0x22;
+ w.b[2] = 0x33;
+ w.b[3] = 0x44;
+
+ e = w.u;
+}
+
refcounted::refcounted (const char *id)
{
this->id = STRDUP (id);
#include "callback.h"
+extern class byteorder {
+ uint32_t e;
+public:
+ byteorder ();
+
+ bool big_endian () { return e == 0x11223344; };
+ bool network () { return e == 0x11223344; };
+ bool little_endian () { return e == 0x44332211; };
+ bool vax () { return e == 0x44332211; };
+} byteorder;
+
struct rxvt_term;
struct im_watcher;