… | |
… | |
108 | reference. The string will be used as button text and the code reference |
108 | reference. The string will be used as button text and the code reference |
109 | will be called when the toggle changes, with the new boolean value as |
109 | will be called when the toggle changes, with the new boolean value as |
110 | first argument. |
110 | first argument. |
111 | |
111 | |
112 | The following will add an entry C<myoption> that changes |
112 | The following will add an entry C<myoption> that changes |
113 | C<$self->{myoption}>: |
113 | C<< $self->{myoption} >>: |
114 | |
114 | |
115 | push @{ $self->{term}{option_popup_hook} }, sub { |
115 | push @{ $self->{term}{option_popup_hook} }, sub { |
116 | ("my option" => $myoption, sub { $self->{myoption} = $_[0] }) |
116 | ("my option" => $myoption, sub { $self->{myoption} = $_[0] }) |
117 | }; |
117 | }; |
118 | |
118 | |
… | |
… | |
1262 | Here is a likely non-exhaustive list of resource names, not all of which |
1262 | Here is a likely non-exhaustive list of resource names, not all of which |
1263 | are supported in every build, please see the source file F</src/rsinc.h> |
1263 | are supported in every build, please see the source file F</src/rsinc.h> |
1264 | to see the actual list: |
1264 | to see the actual list: |
1265 | |
1265 | |
1266 | answerbackstring backgroundPixmap backspace_key boldFont boldItalicFont |
1266 | answerbackstring backgroundPixmap backspace_key boldFont boldItalicFont |
1267 | borderLess color cursorBlink cursorUnderline cutchars delete_key |
1267 | borderLess chdir color cursorBlink cursorUnderline cutchars delete_key |
1268 | display_name embed ext_bwidth fade font geometry hold iconName |
1268 | display_name embed ext_bwidth fade font geometry hold iconName |
1269 | imFont imLocale inputMethod insecure int_bwidth intensityStyles |
1269 | imFont imLocale inputMethod insecure int_bwidth intensityStyles |
1270 | italicFont jumpScroll lineSpace loginShell mapAlert meta8 modifier |
1270 | italicFont jumpScroll lineSpace loginShell mapAlert meta8 modifier |
1271 | mouseWheelScrollPage name override_redirect pastableTabs path perl_eval |
1271 | mouseWheelScrollPage name override_redirect pastableTabs path perl_eval |
1272 | perl_ext_1 perl_ext_2 perl_lib pointerBlank pointerBlankDelay |
1272 | perl_ext_1 perl_ext_2 perl_lib pointerBlank pointerBlankDelay |
… | |
… | |
1280 | =cut |
1280 | =cut |
1281 | |
1281 | |
1282 | sub resource($$;$) { |
1282 | sub resource($$;$) { |
1283 | my ($self, $name) = (shift, shift); |
1283 | my ($self, $name) = (shift, shift); |
1284 | unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); |
1284 | unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); |
1285 | &urxvt::term::_resource |
1285 | goto &urxvt::term::_resource |
1286 | } |
1286 | } |
1287 | |
1287 | |
1288 | =item $value = $term->x_resource ($pattern) |
1288 | =item $value = $term->x_resource ($pattern) |
1289 | |
1289 | |
1290 | Returns the X-Resource for the given pattern, excluding the program or |
1290 | Returns the X-Resource for the given pattern, excluding the program or |
… | |
… | |
1597 | |
1597 | |
1598 | Used after changing terminal contents to display them. |
1598 | Used after changing terminal contents to display them. |
1599 | |
1599 | |
1600 | =item $text = $term->ROW_t ($row_number[, $new_text[, $start_col]]) |
1600 | =item $text = $term->ROW_t ($row_number[, $new_text[, $start_col]]) |
1601 | |
1601 | |
1602 | Returns the text of the entire row with number C<$row_number>. Row C<0> |
1602 | Returns the text of the entire row with number C<$row_number>. Row C<< $term->top_row >> |
1603 | is the topmost terminal line, row C<< $term->$ncol-1 >> is the bottommost |
1603 | is the topmost terminal line, row C<< $term->nrow-1 >> is the bottommost |
1604 | terminal line. The scrollback buffer starts at line C<-1> and extends to |
|
|
1605 | line C<< -$term->nsaved >>. Nothing will be returned if a nonexistent line |
1604 | terminal line. Nothing will be returned if a nonexistent line |
1606 | is requested. |
1605 | is requested. |
1607 | |
1606 | |
1608 | If C<$new_text> is specified, it will replace characters in the current |
1607 | If C<$new_text> is specified, it will replace characters in the current |
1609 | line, starting at column C<$start_col> (default C<0>), which is useful |
1608 | line, starting at column C<$start_col> (default C<0>), which is useful |
1610 | to replace only parts of a line. The font index in the rendition will |
1609 | to replace only parts of a line. The font index in the rendition will |
… | |
… | |
1808 | |
1807 | |
1809 | =item @atoms = $term->XListProperties ($window) |
1808 | =item @atoms = $term->XListProperties ($window) |
1810 | |
1809 | |
1811 | =item ($type,$format,$octets) = $term->XGetWindowProperty ($window, $property) |
1810 | =item ($type,$format,$octets) = $term->XGetWindowProperty ($window, $property) |
1812 | |
1811 | |
1813 | =item $term->XChangeWindowProperty ($window, $property, $type, $format, $octets) |
1812 | =item $term->XChangeProperty ($window, $property, $type, $format, $octets) |
1814 | |
1813 | |
1815 | =item $term->XDeleteProperty ($window, $property) |
1814 | =item $term->XDeleteProperty ($window, $property) |
1816 | |
1815 | |
1817 | =item $window = $term->DefaultRootWindow |
1816 | =item $window = $term->DefaultRootWindow |
1818 | |
1817 | |