From 4682401bcf82b619cd132c8d3111c5fe95e44a13 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2006 03:02:44 +0000 Subject: [PATCH] fix description of [percent]color color format --- Changes | 1 + doc/rxvt.1.pod | 8 +++++--- src/urxvt.pm | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Changes b/Changes index 97af1eca..d1b7d697 100644 --- a/Changes +++ b/Changes @@ -40,6 +40,7 @@ TODO: http://triplefusion.net/system/macosx-clipboard 8. - secondaryScroll is now enable by default (as per the manpage), reported by exg. + - correct the description of [percent]color rgba format in the manpage. 8.0 Thu Nov 2 18:35:19 CET 2006 - combining characters cleared the area instead of creating an overlay, diff --git a/doc/rxvt.1.pod b/doc/rxvt.1.pod index 2307ddf7..00921990 100644 --- a/doc/rxvt.1.pod +++ b/doc/rxvt.1.pod @@ -1380,8 +1380,10 @@ their act together, rxvt-unicode will support C (recommended, but B have 4 digits/component) colour specifications, in addition to the ones provided by X, where the additional A component specifies opacity (alpha) values. The minimum value of C<0> is completely -transparent). You can also prefix any color with C<[a]>, where C is on -to four hex digits specifiying the opacity value. +transparent). You can also prefix any color with C<[percent]>, where +C is a decimal percentage (0-100) that specifies the opacity of +the color, where C<0> is completely transparent and C<100> is completelxy +opaque. You probably need to specify B<"-depth 32">, too, and have the luck that your X-server uses ARGB pixel layout, as X is far from just supporting @@ -1390,7 +1392,7 @@ ARGB visuals out of the box, and rxvt-unicode just fudges around. For example, the following selects an almost completely transparent red background, and an almost opaque pink foreground: - @@RXVT_NAME@@ -depth 32 -bg rgba:0000/0000/0000/2222 -fg "[e]pink" + @@RXVT_NAME@@ -depth 32 -bg rgba:0000/0000/0000/aaaa -fg "[80]pink" I diff --git a/src/urxvt.pm b/src/urxvt.pm index 7d5cb694..1aea52e8 100644 --- a/src/urxvt.pm +++ b/src/urxvt.pm @@ -1112,20 +1112,20 @@ sub DESTROY { } sub condvar { - bless \my $flag, urxvt::anyevent::condvar:: + bless \my $flag, urxvt::anyevent:: } -sub urxvt::anyevent::condvar::broadcast { +sub broadcast { ${$_[0]}++; } -sub urxvt::anyevent::condvar::wait { +sub wait { unless (${$_[0]}) { Carp::croak "AnyEvent->condvar blocking wait unsupported in urxvt, use a non-blocking API"; } } -sub urxvt::anyevent::one_event { +sub one_event { Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API"; } -- 2.34.1