*** empty log message ***
authorroot <root>
Fri, 30 Jul 2004 22:32:33 +0000 (22:32 +0000)
committerroot <root>
Fri, 30 Jul 2004 22:32:33 +0000 (22:32 +0000)
Changes
doc/rxvt.1
doc/rxvt.tbl
doc/yodl/rxvt-options.yo
doc/yodl/rxvt-resources.yo
src/rxvt.h
src/xdefaults.C

diff --git a/Changes b/Changes
index 1f7b1fa39c804cecf176a9ad2c1b97e6eac99729..30488161d6e071fd73bb6828359506e9d40b3d6c 100644 (file)
--- a/Changes
+++ b/Changes
@@ -2,11 +2,22 @@ Lines marked with "xterm:" indicate either xterm features ported to rxvt
 or changed rxvt behaviour to make it more compatible to xterm (usually
 xfree86's xterm).
 
-TODO: escaping system for long escape sequences, so we can stop on CR/LF.
 TODO: implement xterm mode to be able to use xfree's TERM=xterm.
 TODO: multibyte support for setwmname et al.
-TODO: there are other todo items, but they are not in this file because they
-      are very long-term :)
+TODO: there are other todo items, but they are not in this file.
+
+3.3
+       - some doc updates (Eduard Bloch).
+       - use faster inheritpixmap method when tinting color not set.
+       - fix pixmap offset when tinting (reported by Eduard Bloch).
+        - new -sh option by Mikael Magnusson.
+       - off-focus-fading (--enable-fading) support (patch by
+          Mikael Magnusson).
+       - cursor now set correctly on --disable-blank (reported by
+          Mikael Magnusson).
+        - better (and non-crashing) slipwheeling (Mikael Magnusson).
+       - solaris 2.8 portability changes (reported by Colin Marquardt).
+       - disable-xim now really disables xim code.
 
 3.2  Mon Jul 26 19:57:32 CEST 2004
         - support real bold fonts (patch by Adam Sampson <azz@us-lot.org>),
index 71a5b99150270a3cd6a9227a63f0d9648fb19740..148bf5bd62e89877a7bb83fabd240509577f7ad8 100644 (file)
@@ -293,8 +293,12 @@ option \fB+j\fP\&.
 \fBTrue\fP: make the background inherit the parent windows\&' pixmap,
 giving artificial transparency\&.
 \fBFalse\fP: do not inherit the parent windows\&' pixmap\&.
+.IP "\fBfading:\fP \fInumber\fP" 
+Fade the text by the given percentage when focus is lost\&.
 .IP "\fBtintColor:\fP \fIcolour\fP" 
 Tint the transparent background pixmap with the given colour\&.
+.IP "\fBfading:\fP \fInumber\fP" 
+Scale the tint colour by the given percentage\&.
 .IP "\fBscrollColor:\fP \fIcolour\fP" 
 Use the specified colour for the scrollbar [default #B2B2B2]\&.
 .IP "\fBtroughColor:\fP \fIcolour\fP" 
index 0d75f2fa61b9c667d3d162dad534548d367a3c41..234846fda624895aedb145262c21a31f64d635f9 100644 (file)
@@ -290,8 +290,12 @@ option \fB+j\fP\&.
 \fBTrue\fP: make the background inherit the parent windows\&' pixmap,
 giving artificial transparency\&.
 \fBFalse\fP: do not inherit the parent windows\&' pixmap\&.
+.IP "\fBfading:\fP \fInumber\fP" 
+Fade the text by the given percentage when focus is lost\&.
 .IP "\fBtintColor:\fP \fIcolour\fP" 
 Tint the transparent background pixmap with the given colour\&.
+.IP "\fBfading:\fP \fInumber\fP" 
+Scale the tint colour by the given percentage\&.
 .IP "\fBscrollColor:\fP \fIcolour\fP" 
 Use the specified colour for the scrollbar [default #B2B2B2]\&.
 .IP "\fBtroughColor:\fP \fIcolour\fP" 
index 10f41c7a647e82703c2a59a1007e53d86f44ea68..317c8ef2b48fae86d1ea1fd1595634adf6ca71c1 100644 (file)
@@ -1,4 +1,4 @@
-COMMENT(-- $Id: rxvt-options.yo,v 1.14 2004-07-30 19:51:49 root Exp $ --)
+COMMENT(-- $Id: rxvt-options.yo,v 1.15 2004-07-30 22:32:33 root Exp $ --)
 COMMENT(----------------------------------------------------------------------)
 manpageoptions()
 
@@ -43,7 +43,10 @@ startdit()
        Fade the text by the given percentage when focus is lost.
     dit(bf(-tint) em(colour))
         Tint the transparent background pixmap with the given colour when
-        transparency is enabled with bf(-tr) or bf(-ip).
+        transparency is enabled with bf(-tr) or bf(-ip). You can also
+        emulate the "shading" or "brigthness change" option known from
+        other terminal programs using gray10 (gray20, etc.) colour
+        strings.
     dit(bf(-bg) em(colour))
        Window background colour;
         resource bf(background).
index f711d72fd9d626fa15523f66889b0cb3eac72bc9..a77abb7b57843a441507ee5b23a3c3f89b2e2b1b 100644 (file)
@@ -1,4 +1,4 @@
-COMMENT(-- $Id: rxvt-resources.yo,v 1.16 2004-07-30 22:32:33 root Exp $ --)
+COMMENT(-- $Id: rxvt-resources.yo,v 1.17 2004-07-30 22:36:42 root Exp $ --)
 COMMENT(----------------------------------------------------------------------)
 manpagesection(RESOURCES (available also as long-options))
 
@@ -81,8 +81,12 @@ startdit()
        bf(True): make the background inherit the parent windows' pixmap,
        giving artificial transparency.
        bf(False): do not inherit the parent windows' pixmap.
+    dit(bf(fading:) em(number))
+       Fade the text by the given percentage when focus is lost.
     dit(bf(tintColor:) em(colour))
         Tint the transparent background pixmap with the given colour.
+    dit(bf(fading:) em(number))
+        Scale the tint colour by the given percentage.
     dit(bf(scrollColor:) em(colour))
        Use the specified colour for the scrollbar [default #B2B2B2].
     dit(bf(troughColor:) em(colour))
index 3b74b19dacaa14f01db15efbfa47b2fe707d5bbf..211b60262cea4e3b2be9420a9856e4acd99c0cd5 100644 (file)
@@ -555,6 +555,12 @@ enum {
 #endif
 #ifndef NO_BOLD_UNDERLINE_REVERSE
   Rs_realBold,
+#endif
+#ifdef OFF_FOCUS_FADING
+  Rs_fade,
+#endif
+#ifdef TINTING
+  Rs_shade,
 #endif
   NUM_RESOURCES
 };
@@ -1155,8 +1161,8 @@ struct rxvt_term : rxvt_vars {
 #ifdef POINTER_BLANK
   void pointer_cb (time_watcher &w); time_watcher pointer_ev;
   void pointer_blank ();
-  void pointer_unblank ();
 #endif
+  void pointer_unblank ();
 
   void tt_printf (const char *fmt,...);
   void tt_write (const unsigned char *data, unsigned int len);
index d9794845df793505391d74cbb837162a87c06948..3daa262874679c785f212a9b4453923e0d08811f 100644 (file)
@@ -110,6 +110,12 @@ optList[] = {
 #if TINTING
               STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"),
 #endif
+#endif
+#ifdef OFF_FOCUS_FADING
+              STRG (Rs_fade, "fading", "fade", "%", "make colors x% darker when urxvt is losing focus."),
+#endif
+#ifdef TINTING
+              STRG (Rs_shade, "shading", "sh", "%", "shade background by x% when tinting."),
 #endif
               BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"),
 #ifndef NO_BELL
@@ -464,32 +470,18 @@ rxvt_term::get_options (int argc, const char *const *argv)
         {
           if (optList_isReverse (entry))
             flag = flag == On ? Off : On;
-          if (optList_strlen (entry))
-            {  /* string value */
-              const char *str = argv[++i];
 
-#ifdef DEBUG_RESOURCES
-              fprintf (stderr, "string (%s,%s) = ",
-                      optList[entry].opt ? optList[entry].opt : "nil",
-                      optList[entry].kw ? optList[entry].kw : "nil");
-#endif
-              if (flag == On && str && (optList[entry].doff != -1))
-                {
-#ifdef DEBUG_RESOURCES
-                  fprintf (stderr, "\"%s\"\n", str);
-#endif
-                  rs[optList[entry].doff] = str;
-                  /*
-                   * special cases are handled in main.c:main () to allow
-                   * X resources to set these values before we settle for
-                   * default values
-                   */
-                }
-#ifdef DEBUG_RESOURCES
-              else
-                fprintf (stderr, "???\n");
-#endif
+          if (optList_strlen (entry))
+            {
+              /*
+               * special cases are handled in main.c:main () to allow
+               * X resources to set these values before we settle for
+               * default values
+               */
 
+              if (optList[entry].doff != -1)
+                rs[optList[entry].doff] = flag == On && argv[i+1]
+                                          ? argv[++i] : 0;
             }
           else
             {          /* boolean value */