… | |
… | |
120 | <dd> |
120 | <dd> |
121 | <p>You can look at the source of the selection extension to see more |
121 | <p>You can look at the source of the selection extension to see more |
122 | interesting uses, such as parsing a line from beginning to end.</p> |
122 | interesting uses, such as parsing a line from beginning to end.</p> |
123 | </dd> |
123 | </dd> |
124 | <dd> |
124 | <dd> |
125 | <p>This extension also offers the following bindable keyboard command:</p> |
125 | <p>This extension also offers following bindable keyboard commands:</p> |
126 | </dd> |
126 | </dd> |
127 | <dl> |
127 | <dl> |
128 | <dt><strong><a name="item_rot13">rot13</a></strong><br /> |
128 | <dt><strong><a name="item_rot13">rot13</a></strong><br /> |
129 | </dt> |
129 | </dt> |
130 | <dd> |
130 | <dd> |
… | |
… | |
246 | </dt> |
246 | </dt> |
247 | <dd> |
247 | <dd> |
248 | Displays a very simple digital clock in the upper right corner of the |
248 | Displays a very simple digital clock in the upper right corner of the |
249 | window. Illustrates overwriting the refresh callbacks to create your own |
249 | window. Illustrates overwriting the refresh callbacks to create your own |
250 | overlays or changes. |
250 | overlays or changes. |
|
|
251 | </dd> |
|
|
252 | <p></p> |
|
|
253 | <dt><strong><a name="item_selection_2dpastebin">selection-pastebin</a></strong><br /> |
|
|
254 | </dt> |
|
|
255 | <dd> |
|
|
256 | This is a little rarely useful extension that Uploads the selection as |
|
|
257 | textfile to a remote site (or does other things). (The implementation is |
|
|
258 | not currently secure for use in a multiuser environment as it writes to |
|
|
259 | <em>/tmp</em> directly.). |
|
|
260 | </dd> |
|
|
261 | <dd> |
|
|
262 | <p>It listens to the <code>selection-pastebin:remote-pastebin</code> keyboard command, |
|
|
263 | i.e.</p> |
|
|
264 | </dd> |
|
|
265 | <dd> |
|
|
266 | <pre> |
|
|
267 | URxvt.keysym.C-M-e: perl:selection-pastebin:remote-pastebin</pre> |
|
|
268 | </dd> |
|
|
269 | <dd> |
|
|
270 | <p>Pressing this combination runs a command with <code>%</code> replaced by the name of |
|
|
271 | the textfile. This command can be set via a resource:</p> |
|
|
272 | </dd> |
|
|
273 | <dd> |
|
|
274 | <pre> |
|
|
275 | URxvt.selection-pastebin.cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/.</pre> |
|
|
276 | </dd> |
|
|
277 | <dd> |
|
|
278 | <p>And the default is likely not useful to anybody but the few people around |
|
|
279 | here :)</p> |
|
|
280 | </dd> |
|
|
281 | <dd> |
|
|
282 | <p>The name of the textfile is the hex encoded md5 sum of the selection, so |
|
|
283 | the same content should lead to the same filename.</p> |
|
|
284 | </dd> |
|
|
285 | <dd> |
|
|
286 | <p>After a successful upload the selection will be replaced by the text given |
|
|
287 | in the <code>selection-pastebin-url</code> resource (again, the % is the placeholder |
|
|
288 | for the filename):</p> |
|
|
289 | </dd> |
|
|
290 | <dd> |
|
|
291 | <pre> |
|
|
292 | URxvt.selection-pastebin.url: <a href="http://www.ta-sa.org/files/txt/%">http://www.ta-sa.org/files/txt/%</a></pre> |
251 | </dd> |
293 | </dd> |
252 | <p></p></dl> |
294 | <p></p></dl> |
253 | <p> |
295 | <p> |
254 | </p> |
296 | </p> |
255 | <hr /> |
297 | <hr /> |
… | |
… | |
602 | </dd> |
644 | </dd> |
603 | <dd> |
645 | <dd> |
604 | <p>Messages have a size limit of 1023 bytes currently.</p> |
646 | <p>Messages have a size limit of 1023 bytes currently.</p> |
605 | </dd> |
647 | </dd> |
606 | <p></p> |
648 | <p></p> |
607 | <dt><strong><a name="item__24is_safe__3d_urxvt_3a_3asafe">$is_safe = urxvt::safe</a></strong><br /> |
|
|
608 | </dt> |
|
|
609 | <dd> |
|
|
610 | Returns true when it is safe to do potentially unsafe things, such as |
|
|
611 | evaluating perl code specified by the user. This is true when urxvt was |
|
|
612 | started setuid or setgid. |
|
|
613 | </dd> |
|
|
614 | <p></p> |
|
|
615 | <dt><strong><a name="item__24time__3d_urxvt_3a_3anow">$time = urxvt::NOW</a></strong><br /> |
649 | <dt><strong><a name="item__24time__3d_urxvt_3a_3anow">$time = urxvt::NOW</a></strong><br /> |
616 | </dt> |
650 | </dt> |
617 | <dd> |
651 | <dd> |
618 | Returns the ``current time'' (as per the event loop). |
652 | Returns the ``current time'' (as per the event loop). |
619 | </dd> |
653 | </dd> |