… | |
… | |
23 | Scripts are compiled in a 'use strict' and 'use utf8' environment, and |
23 | Scripts are compiled in a 'use strict' and 'use utf8' environment, and |
24 | thus must be encoded as UTF-8. |
24 | thus must be encoded as UTF-8. |
25 | |
25 | |
26 | Each script will only ever be loaded once, even in @@RXVT_NAME@@d, where |
26 | Each script will only ever be loaded once, even in @@RXVT_NAME@@d, where |
27 | scripts will be shared (But not enabled) for all terminals. |
27 | scripts will be shared (But not enabled) for all terminals. |
|
|
28 | |
|
|
29 | =head1 PACKAGED EXTENSIONS |
|
|
30 | |
|
|
31 | This section describes the extensiosn delivered with this version. You can |
|
|
32 | find them in F<@@RXVT_LIBDIR@@/urxvt/perl/>. |
|
|
33 | |
|
|
34 | You can activate them like this: |
|
|
35 | |
|
|
36 | @@RXVT_NAME@@ -pe <extensionname> |
|
|
37 | |
|
|
38 | =over 4 |
|
|
39 | |
|
|
40 | =item selection |
|
|
41 | |
|
|
42 | Miscellaneous selection modifications. |
|
|
43 | |
|
|
44 | =over 4 |
|
|
45 | |
|
|
46 | =item rot13 |
|
|
47 | |
|
|
48 | Rot-13 the selection when activated. Used via keyboard trigger: |
|
|
49 | |
|
|
50 | URxvt.keysym.C-M-r: perl:selection:rot13 |
|
|
51 | |
|
|
52 | =back |
|
|
53 | |
|
|
54 | =item digital-clock |
|
|
55 | |
|
|
56 | Displays a very simple digital clock in the upper right corner of the |
|
|
57 | window. Illustrates overwriting the refresh callbacks to create your own |
|
|
58 | overlays or changes. |
|
|
59 | |
|
|
60 | =item simple-overlay-clock |
|
|
61 | |
|
|
62 | Displays a digital clock using the built-in overlay (colorful, useless). |
|
|
63 | |
|
|
64 | =back |
28 | |
65 | |
29 | =head2 General API Considerations |
66 | =head2 General API Considerations |
30 | |
67 | |
31 | All objects (such as terminals, time watchers etc.) are typical |
68 | All objects (such as terminals, time watchers etc.) are typical |
32 | reference-to-hash objects. The hash can be used to store anything you |
69 | reference-to-hash objects. The hash can be used to store anything you |
… | |
… | |
410 | |
447 | |
411 | Returns the negative row number of the topmost line. Minimum value is |
448 | Returns the negative row number of the topmost line. Minimum value is |
412 | C<0>, which displays the normal terminal contents. Larger values scroll |
449 | C<0>, which displays the normal terminal contents. Larger values scroll |
413 | this many lines into the scrollback buffer. |
450 | this many lines into the scrollback buffer. |
414 | |
451 | |
|
|
452 | =item $term->want_refresh |
|
|
453 | |
|
|
454 | Requests a screen refresh. At the next opportunity, rxvt-unicode will |
|
|
455 | compare the on-screen display with its stored representation. If they |
|
|
456 | differ, it redraws the differences. |
|
|
457 | |
|
|
458 | Used after changing terminal contents to display them. |
|
|
459 | |
415 | =item $text = $term->ROW_t ($row_number[, $new_text[, $start_col]]) |
460 | =item $text = $term->ROW_t ($row_number[, $new_text[, $start_col]]) |
416 | |
461 | |
417 | Returns the text of the entire row with number C<$row_number>. Row C<0> |
462 | Returns the text of the entire row with number C<$row_number>. Row C<0> |
418 | is the topmost terminal line, row C<< $term->$ncol-1 >> is the bottommost |
463 | is the topmost terminal line, row C<< $term->$ncol-1 >> is the bottommost |
419 | terminal line. The scrollback buffer starts at line C<-1> and extends to |
464 | terminal line. The scrollback buffer starts at line C<-1> and extends to |