ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvtperl.3.html
(Generate patch)

Comparing rxvt-unicode/doc/rxvtperl.3.html (file contents):
Revision 1.41 by root, Mon Feb 6 05:55:33 2006 UTC vs.
Revision 1.42 by root, Mon Feb 6 06:14:55 2006 UTC

154</dt> 154</dt>
155<dd> 155<dd>
156Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options at 156Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options at
157runtime. 157runtime.
158</dd> 158</dd>
159<dd>
160<p>Other extensions can extend this popup menu by pushing a code reference
161onto <code>@{ $term-</code>{option_popup_hook} }&gt;, which gets called whenever the
162popup is being displayed.</p>
163</dd>
164<dd>
165<p>It's sole argument is the popup menu, which can be modified. It should
166either return nothing or a string, the initial boolean value and a code
167reference. The string will be used as button text and the code reference
168will be called when the toggle changes, with the new boolean value as
169first argument.</p>
170</dd>
171<dd>
172<p>The following will add an entry <code>myoption</code> that changes
173<code>$self-</code>{myoption}&gt;:</p>
174</dd>
175<dd>
176<pre>
177 push @{ $self-&gt;{term}{option_popup_hook} }, sub {
178 (&quot;my option&quot; =&gt; $myoption, sub { $self-&gt;{myoption} = $_[0] })
179 };</pre>
180</dd>
159<p></p> 181<p></p>
160<dt><strong>selection-popup (enabled by default)</strong><br /> 182<dt><strong>selection-popup (enabled by default)</strong><br />
161</dt> 183</dt>
162<dd> 184<dd>
163Binds a popup menu to Ctrl-Button3 that lets you convert the selection 185Binds a popup menu to Ctrl-Button3 that lets you convert the selection
164text into various other formats/action (such as uri unescaping, perl 186text into various other formats/action (such as uri unescaping, perl
165evaluation, web-browser starting etc.), depending on content. 187evaluation, web-browser starting etc.), depending on content.
166</dd> 188</dd>
167<dd> 189<dd>
168<p>Other extensions can extend this popup menu by pushing a code reference 190<p>Other extensions can extend this popup menu by pushing a code reference
169onto <code>@{ $term-</code>{selection_popup_hook} }&gt;, that is called whenever the 191onto <code>@{ $term-</code>{selection_popup_hook} }&gt;, which gets called whenever the
170popup is displayed.</p> 192popup is being displayed.</p>
171</dd> 193</dd>
172<dd> 194<dd>
173<p>It's sole argument is the popup menu, which can be modified. The selection 195<p>It's sole argument is the popup menu, which can be modified. The selection
174is in <code>$_</code>, which can be used to decide wether to add something or not. 196is in <code>$_</code>, which can be used to decide wether to add something or not.
175It should either return nothing or a string and a code reference. The 197It should either return nothing or a string and a code reference. The
1639<dd> 1661<dd>
1640Adds a clickable button to the popup. <code>$cb</code> is called whenever it is 1662Adds a clickable button to the popup. <code>$cb</code> is called whenever it is
1641selected. 1663selected.
1642</dd> 1664</dd>
1643<p></p> 1665<p></p>
1644<dt><strong><a name="item_add_toggle">$popup-&gt;add_toggle ($text, $cb, $initial_value)</a></strong><br /> 1666<dt><strong><a name="item_add_toggle">$popup-&gt;add_toggle ($text, $initial_value, $cb)</a></strong><br />
1645</dt> 1667</dt>
1646<dd> 1668<dd>
1647Adds a toggle/checkbox item to the popup. Teh callback gets called 1669Adds a toggle/checkbox item to the popup. The callback gets called
1648whenever it gets toggled, with a boolean indicating its value as its first 1670whenever it gets toggled, with a boolean indicating its new value as its
1649argument. 1671first argument.
1650</dd> 1672</dd>
1651<p></p> 1673<p></p>
1652<dt><strong>$popup-&gt;show</strong><br /> 1674<dt><strong>$popup-&gt;show</strong><br />
1653</dt> 1675</dt>
1654<dd> 1676<dd>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines