… | |
… | |
31 | |
31 | |
32 | rxvt -pe <extensionname> |
32 | rxvt -pe <extensionname> |
33 | |
33 | |
34 | selection (enabled by default) |
34 | selection (enabled by default) |
35 | (More) intelligent selection. This extension tries to be more |
35 | (More) intelligent selection. This extension tries to be more |
36 | intelligent when the user extends selections (double-click). Right |
36 | intelligent when the user extends selections (double-click and |
37 | now, it tries to select urls and complete shell-quoted arguments, |
37 | further clicks). Right now, it tries to select words, urls and |
38 | which is very convenient, too, if your ls supports |
38 | complete shell-quoted arguments, which is very convenient, too, if |
39 | "--quoting-style=shell". |
39 | your ls supports "--quoting-style=shell". |
|
|
40 | |
|
|
41 | A double-click usually selects the word under the cursor, further |
|
|
42 | clicks will enlarge the selection. |
40 | |
43 | |
41 | It also offers the following bindable keyboard command: |
44 | It also offers the following bindable keyboard command: |
42 | |
45 | |
43 | rot13 |
46 | rot13 |
44 | Rot-13 the selection when activated. Used via keyboard trigger: |
47 | Rot-13 the selection when activated. Used via keyboard trigger: |
… | |
… | |
55 | unescaping, perl evalution, web-browser starting etc.), depending on |
58 | unescaping, perl evalution, web-browser starting etc.), depending on |
56 | content. |
59 | content. |
57 | |
60 | |
58 | searchable-scrollback<hotkey> (enabled by default) |
61 | searchable-scrollback<hotkey> (enabled by default) |
59 | Adds regex search functionality to the scrollback buffer, triggered |
62 | Adds regex search functionality to the scrollback buffer, triggered |
60 | by a hotkey (default: "M-s"). When in search mode, normal terminal |
63 | by a hotkey (default: "M-s"). While in search mode, normal terminal |
61 | input/output is suspended. |
64 | input/output is suspended and a regex is displayed at the bottom of |
|
|
65 | the screen. |
62 | |
66 | |
63 | "/" starts an incremental regex search, "n" searches further, "p" or |
67 | Inputting characters appends them to the regex and continues |
64 | "N" jump to the previous match, "G" jumps to the bottom and clears |
68 | incremental search. "BackSpace" removes a character from the regex, |
65 | the history, "enter" leaves search mode at the current position and |
69 | "Up" and "Down" search upwards/downwards in the scrollback buffer, |
66 | "escape" returns to the original position. |
70 | "End" jumps to the bottom. "Escape" leaves search mode and returns |
|
|
71 | to the point where search was started, while "Enter" or "Return" |
|
|
72 | stay at the current position and additionally stores the first match |
|
|
73 | in the current line into the primary selection. |
67 | |
74 | |
68 | digital-clock |
75 | digital-clock |
69 | Displays a digital clock using the built-in overlay. |
76 | Displays a digital clock using the built-in overlay. |
70 | |
77 | |
71 | mark-urls |
78 | mark-urls |
72 | Uses per-line display filtering ("on_line_update") to underline urls |
79 | Uses per-line display filtering ("on_line_update") to underline urls |
73 | and make them clickable. When clicked, the program specified in the |
80 | and make them clickable. When middle-clicked, the program specified |
74 | resource "urlLauncher" (default "x-www-browser") will be started. |
81 | in the resource "urlLauncher" (default "x-www-browser") will be |
|
|
82 | started with the URL as first argument. |
75 | |
83 | |
76 | block-graphics-to-ascii |
84 | block-graphics-to-ascii |
77 | A not very useful example of filtering all text output to the |
85 | A not very useful example of filtering all text output to the |
78 | terminal, by replacing all line-drawing characters (U+2500 .. |
86 | terminal, by replacing all line-drawing characters (U+2500 .. |
79 | U+259F) by a similar-looking ascii character. |
87 | U+259F) by a similar-looking ascii character. |
… | |
… | |
187 | |
195 | |
188 | on_sel_extend $term |
196 | on_sel_extend $term |
189 | Called whenever the user tries to extend the selection (e.g. with a |
197 | Called whenever the user tries to extend the selection (e.g. with a |
190 | double click) and is either supposed to return false (normal |
198 | double click) and is either supposed to return false (normal |
191 | operation), or should extend the selection itelf and return true to |
199 | operation), or should extend the selection itelf and return true to |
192 | suppress the built-in processing. |
200 | suppress the built-in processing. This can happen multiple times, as |
|
|
201 | long as the callback returns true, it will be called on every |
|
|
202 | further click by the user and is supposed to enlarge the selection |
|
|
203 | more and more, if possible. |
193 | |
204 | |
194 | See the selection example extension. |
205 | See the selection example extension. |
195 | |
206 | |
196 | on_view_change $term, $offset |
207 | on_view_change $term, $offset |
197 | Called whenever the view offset changes, i..e the user or program |
208 | Called whenever the view offset changes, i..e the user or program |
… | |
… | |
472 | ($row, $col) = $term->selection_beg ([$row, $col]) |
483 | ($row, $col) = $term->selection_beg ([$row, $col]) |
473 | ($row, $col) = $term->selection_end ([$row, $col]) |
484 | ($row, $col) = $term->selection_end ([$row, $col]) |
474 | Return the current values of the selection mark, begin or end |
485 | Return the current values of the selection mark, begin or end |
475 | positions, and optionally set them to new values. |
486 | positions, and optionally set them to new values. |
476 | |
487 | |
|
|
488 | $term->selection_make ($eventtime[, $rectangular]) |
|
|
489 | Tries to make a selection as set by "selection_beg" and |
|
|
490 | "selection_end". If $rectangular is true (default: false), a |
|
|
491 | rectangular selection will be made. This is the prefered function to |
|
|
492 | make a selection. |
|
|
493 | |
477 | $success = $term->selection_grab ($eventtime) |
494 | $success = $term->selection_grab ($eventtime) |
478 | Try to request the primary selection from the server (for example, |
495 | Try to request the primary selection text from the server (for |
479 | as set by the next method). |
496 | example, as set by the next method). No visual feedback will be |
|
|
497 | given. This function is mostly useful from within "on_sel_grab" |
|
|
498 | hooks. |
480 | |
499 | |
481 | $oldtext = $term->selection ([$newtext]) |
500 | $oldtext = $term->selection ([$newtext]) |
482 | Return the current selection text and optionally replace it by |
501 | Return the current selection text and optionally replace it by |
483 | $newtext. |
502 | $newtext. |
484 | |
503 | |
… | |
… | |
529 | $string = $term->locale_decode ($octets) |
548 | $string = $term->locale_decode ($octets) |
530 | Convert the given locale-encoded octets into a perl string. |
549 | Convert the given locale-encoded octets into a perl string. |
531 | |
550 | |
532 | $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle]) |
551 | $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle]) |
533 | XORs the rendition values in the given span with the provided value |
552 | XORs the rendition values in the given span with the provided value |
534 | (default: "RS_RVid"). Useful in refresh hooks to provide effects |
553 | (default: "RS_RVid"), which *MUST NOT* contain font styles. Useful |
535 | similar to the selection. |
554 | in refresh hooks to provide effects similar to the selection. |
536 | |
555 | |
537 | $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, |
556 | $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, |
538 | $rstyle2]]) |
557 | $rstyle2]]) |
539 | Similar to "scr_xor_span", but xors a rectangle instead. Trailing |
558 | Similar to "scr_xor_span", but xors a rectangle instead. Trailing |
540 | whitespace will additionally be xored with the $rstyle2, which |
559 | whitespace will additionally be xored with the $rstyle2, which |
541 | defaults to "RS_RVid | RS_Uline", which removes reverse video again |
560 | defaults to "RS_RVid | RS_Uline", which removes reverse video again |
542 | and underlines it instead. |
561 | and underlines it instead. Both styles *MUST NOT* contain font |
|
|
562 | styles. |
543 | |
563 | |
544 | $term->scr_bell |
564 | $term->scr_bell |
545 | Ring the bell! |
565 | Ring the bell! |
546 | |
566 | |
547 | $term->scr_add_lines ($string) |
567 | $term->scr_add_lines ($string) |
… | |
… | |
687 | Return the row number of the first/last row of the line, |
707 | Return the row number of the first/last row of the line, |
688 | respectively. |
708 | respectively. |
689 | |
709 | |
690 | $offset = $line->offset_of ($row, $col) |
710 | $offset = $line->offset_of ($row, $col) |
691 | Returns the character offset of the given row|col pair within |
711 | Returns the character offset of the given row|col pair within |
692 | the logical line. |
712 | the logical line. Works for rows outside the line, too, and |
|
|
713 | returns corresponding offsets outside the string. |
693 | |
714 | |
694 | ($row, $col) = $line->coord_of ($offset) |
715 | ($row, $col) = $line->coord_of ($offset) |
695 | Translates a string offset into terminal coordinates again. |
716 | Translates a string offset into terminal coordinates again. |
696 | |
717 | |
697 | $text = $term->special_encode $string |
718 | $text = $term->special_encode $string |
… | |
… | |
827 | This variable controls the verbosity level of the perl extension. Higher |
848 | This variable controls the verbosity level of the perl extension. Higher |
828 | numbers indicate more verbose output. |
849 | numbers indicate more verbose output. |
829 | |
850 | |
830 | == 0 - fatal messages |
851 | == 0 - fatal messages |
831 | >= 3 - script loading and management |
852 | >= 3 - script loading and management |
832 | >=10 - all events received |
853 | >=10 - all called hooks |
|
|
854 | >=11 - hook reutrn values |
833 | |
855 | |
834 | AUTHOR |
856 | AUTHOR |
835 | Marc Lehmann <pcg@goof.com> |
857 | Marc Lehmann <pcg@goof.com> |
836 | http://software.schmorp.de/pkg/rxvt-unicode |
858 | http://software.schmorp.de/pkg/rxvt-unicode |
837 | |
859 | |