… | |
… | |
130 | .\} |
130 | .\} |
131 | .rm #[ #] #H #V #F C |
131 | .rm #[ #] #H #V #F C |
132 | .\" ======================================================================== |
132 | .\" ======================================================================== |
133 | .\" |
133 | .\" |
134 | .IX Title "@@RXVT_NAME@@ 3" |
134 | .IX Title "@@RXVT_NAME@@ 3" |
135 | .TH @@RXVT_NAME@@ 3 "2008-06-15" "@@RXVT_VERSION@@" "RXVT-UNICODE" |
135 | .TH @@RXVT_NAME@@ 3 "2008-11-04" "@@RXVT_VERSION@@" "RXVT-UNICODE" |
136 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
136 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
137 | .\" way too many mistakes in technical documents. |
137 | .\" way too many mistakes in technical documents. |
138 | .if n .ad l |
138 | .if n .ad l |
139 | .nh |
139 | .nh |
140 | .SH "NAME" |
140 | .SH "NAME" |
… | |
… | |
250 | reference. The string will be used as button text and the code reference |
250 | reference. The string will be used as button text and the code reference |
251 | will be called when the toggle changes, with the new boolean value as |
251 | will be called when the toggle changes, with the new boolean value as |
252 | first argument. |
252 | first argument. |
253 | .Sp |
253 | .Sp |
254 | The following will add an entry \f(CW\*(C`myoption\*(C'\fR that changes |
254 | The following will add an entry \f(CW\*(C`myoption\*(C'\fR that changes |
255 | \&\f(CW\*(C`$self\-\*(C'\fR{myoption}>: |
255 | \&\f(CW\*(C`$self\->{myoption}\*(C'\fR: |
256 | .Sp |
256 | .Sp |
257 | .Vb 3 |
257 | .Vb 3 |
258 | \& push @{ $self\->{term}{option_popup_hook} }, sub { |
258 | \& push @{ $self\->{term}{option_popup_hook} }, sub { |
259 | \& ("my option" => $myoption, sub { $self\->{myoption} = $_[0] }) |
259 | \& ("my option" => $myoption, sub { $self\->{myoption} = $_[0] }) |
260 | \& }; |
260 | \& }; |
… | |
… | |
682 | than the scroll back buffer or the terminal. |
682 | than the scroll back buffer or the terminal. |
683 | .Sp |
683 | .Sp |
684 | It is called before lines are scrolled out (so rows 0 .. min ($lines \- 1, |
684 | It is called before lines are scrolled out (so rows 0 .. min ($lines \- 1, |
685 | \&\f(CW$nrow\fR \- 1) represent the lines to be scrolled out). \f(CW$saved\fR is the total |
685 | \&\f(CW$nrow\fR \- 1) represent the lines to be scrolled out). \f(CW$saved\fR is the total |
686 | number of lines that will be in the scrollback buffer. |
686 | number of lines that will be in the scrollback buffer. |
687 | .ie n .IP "on_osc_seq $term\fR, \f(CW$op\fR, \f(CW$args" 4 |
687 | .ie n .IP "on_osc_seq $term\fR, \f(CW$op\fR, \f(CW$args\fR, \f(CW$resp" 4 |
688 | .el .IP "on_osc_seq \f(CW$term\fR, \f(CW$op\fR, \f(CW$args\fR" 4 |
688 | .el .IP "on_osc_seq \f(CW$term\fR, \f(CW$op\fR, \f(CW$args\fR, \f(CW$resp\fR" 4 |
689 | .IX Item "on_osc_seq $term, $op, $args" |
689 | .IX Item "on_osc_seq $term, $op, $args, $resp" |
690 | Called on every \s-1OSC\s0 sequence and can be used to suppress it or modify its |
690 | Called on every \s-1OSC\s0 sequence and can be used to suppress it or modify its |
691 | behaviour. The default should be to return an empty list. A true value |
691 | behaviour. The default should be to return an empty list. A true value |
692 | suppresses execution of the request completely. Make sure you don't get |
692 | suppresses execution of the request completely. Make sure you don't get |
693 | confused by recursive invocations when you output an osc sequence within |
693 | confused by recursive invocations when you output an \s-1OSC\s0 sequence within |
694 | this callback. |
694 | this callback. |
695 | .Sp |
695 | .Sp |
696 | \&\f(CW\*(C`on_osc_seq_perl\*(C'\fR should be used for new behaviour. |
696 | \&\f(CW\*(C`on_osc_seq_perl\*(C'\fR should be used for new behaviour. |
697 | .ie n .IP "on_osc_seq_perl $term\fR, \f(CW$string" 4 |
697 | .ie n .IP "on_osc_seq_perl $term\fR, \f(CW$args\fR, \f(CW$resp" 4 |
698 | .el .IP "on_osc_seq_perl \f(CW$term\fR, \f(CW$string\fR" 4 |
698 | .el .IP "on_osc_seq_perl \f(CW$term\fR, \f(CW$args\fR, \f(CW$resp\fR" 4 |
699 | .IX Item "on_osc_seq_perl $term, $string" |
699 | .IX Item "on_osc_seq_perl $term, $args, $resp" |
700 | Called whenever the \fB\s-1ESC\s0 ] 777 ; string \s-1ST\s0\fR command sequence (\s-1OSC\s0 = |
700 | Called whenever the \fB\s-1ESC\s0 ] 777 ; string \s-1ST\s0\fR command sequence (\s-1OSC\s0 = |
701 | operating system command) is processed. Cursor position and other state |
701 | operating system command) is processed. Cursor position and other state |
702 | information is up-to-date when this happens. For interoperability, the |
702 | information is up-to-date when this happens. For interoperability, the |
703 | string should start with the extension name and a colon, to distinguish |
703 | string should start with the extension name (sans \-osc) and a semicolon, |
704 | it from commands for other extensions, and this might be enforced in the |
704 | to distinguish it from commands for other extensions, and this might be |
705 | future. |
705 | enforced in the future. |
|
|
706 | .Sp |
|
|
707 | For example, \f(CW\*(C`overlay\-osc\*(C'\fR uses this: |
|
|
708 | .Sp |
|
|
709 | .Vb 2 |
|
|
710 | \& sub on_osc_seq_perl { |
|
|
711 | \& my ($self, $osc, $resp) = @_; |
|
|
712 | \& |
|
|
713 | \& return unless $osc =~ s/^overlay;//; |
|
|
714 | \& |
|
|
715 | \& ... process remaining $osc string |
|
|
716 | \& } |
|
|
717 | .Ve |
706 | .Sp |
718 | .Sp |
707 | Be careful not ever to trust (in a security sense) the data you receive, |
719 | Be careful not ever to trust (in a security sense) the data you receive, |
708 | as its source can not easily be controlled (e\-mail content, messages from |
720 | as its source can not easily be controlled (e\-mail content, messages from |
709 | other users on the same system etc.). |
721 | other users on the same system etc.). |
|
|
722 | .Sp |
|
|
723 | For responses, \f(CW$resp\fR contains the end-of-args separator used by the |
|
|
724 | sender. |
710 | .ie n .IP "on_add_lines $term\fR, \f(CW$string" 4 |
725 | .ie n .IP "on_add_lines $term\fR, \f(CW$string" 4 |
711 | .el .IP "on_add_lines \f(CW$term\fR, \f(CW$string\fR" 4 |
726 | .el .IP "on_add_lines \f(CW$term\fR, \f(CW$string\fR" 4 |
712 | .IX Item "on_add_lines $term, $string" |
727 | .IX Item "on_add_lines $term, $string" |
713 | Called whenever text is about to be output, with the text as argument. You |
728 | Called whenever text is about to be output, with the text as argument. You |
714 | can filter/change and output the text yourself by returning a true value |
729 | can filter/change and output the text yourself by returning a true value |
… | |
… | |
735 | later with the already-modified line (e.g. if unrelated parts change), so |
750 | later with the already-modified line (e.g. if unrelated parts change), so |
736 | you cannot just toggle rendition bits, but only set them. |
751 | you cannot just toggle rendition bits, but only set them. |
737 | .ie n .IP "on_refresh_begin $term" 4 |
752 | .ie n .IP "on_refresh_begin $term" 4 |
738 | .el .IP "on_refresh_begin \f(CW$term\fR" 4 |
753 | .el .IP "on_refresh_begin \f(CW$term\fR" 4 |
739 | .IX Item "on_refresh_begin $term" |
754 | .IX Item "on_refresh_begin $term" |
740 | Called just before the screen gets redrawn. Can be used for overlay |
755 | Called just before the screen gets redrawn. Can be used for overlay or |
741 | or similar effects by modify terminal contents in refresh_begin, and |
756 | similar effects by modifying the terminal contents in refresh_begin, and |
742 | restoring them in refresh_end. The built-in overlay and selection display |
757 | restoring them in refresh_end. The built-in overlay and selection display |
743 | code is run after this hook, and takes precedence. |
758 | code is run after this hook, and takes precedence. |
744 | .ie n .IP "on_refresh_end $term" 4 |
759 | .ie n .IP "on_refresh_end $term" 4 |
745 | .el .IP "on_refresh_end \f(CW$term\fR" 4 |
760 | .el .IP "on_refresh_end \f(CW$term\fR" 4 |
746 | .IX Item "on_refresh_end $term" |
761 | .IX Item "on_refresh_end $term" |
… | |
… | |
1138 | This method returns an urxvt::overlay object. The overlay will be visible |
1153 | This method returns an urxvt::overlay object. The overlay will be visible |
1139 | as long as the perl object is referenced. |
1154 | as long as the perl object is referenced. |
1140 | .Sp |
1155 | .Sp |
1141 | The methods currently supported on \f(CW\*(C`urxvt::overlay\*(C'\fR objects are: |
1156 | The methods currently supported on \f(CW\*(C`urxvt::overlay\*(C'\fR objects are: |
1142 | .RS 4 |
1157 | .RS 4 |
1143 | .ie n .IP "$overlay\fR\->set ($x, \f(CW$y\fR, \f(CW$text\fR, \f(CW$rend)" 4 |
1158 | .ie n .IP "$overlay\fR\->set ($x, \f(CW$y\fR, \f(CW$text\fR[, \f(CW$rend])" 4 |
1144 | .el .IP "\f(CW$overlay\fR\->set ($x, \f(CW$y\fR, \f(CW$text\fR, \f(CW$rend\fR)" 4 |
1159 | .el .IP "\f(CW$overlay\fR\->set ($x, \f(CW$y\fR, \f(CW$text\fR[, \f(CW$rend\fR])" 4 |
1145 | .IX Item "$overlay->set ($x, $y, $text, $rend)" |
1160 | .IX Item "$overlay->set ($x, $y, $text[, $rend])" |
1146 | Similar to \f(CW\*(C`$term\->ROW_t\*(C'\fR and \f(CW\*(C`$term\->ROW_r\*(C'\fR in that it puts |
1161 | Similar to \f(CW\*(C`$term\->ROW_t\*(C'\fR and \f(CW\*(C`$term\->ROW_r\*(C'\fR in that it puts |
1147 | text in rxvt-unicode's special encoding and an array of rendition values |
1162 | text in rxvt-unicode's special encoding and an array of rendition values |
1148 | at a specific position inside the overlay. |
1163 | at a specific position inside the overlay. |
|
|
1164 | .Sp |
|
|
1165 | If \f(CW$rend\fR is missing, then the rendition will not be changed. |
1149 | .ie n .IP "$overlay\->hide" 4 |
1166 | .ie n .IP "$overlay\->hide" 4 |
1150 | .el .IP "\f(CW$overlay\fR\->hide" 4 |
1167 | .el .IP "\f(CW$overlay\fR\->hide" 4 |
1151 | .IX Item "$overlay->hide" |
1168 | .IX Item "$overlay->hide" |
1152 | If visible, hide the overlay, but do not destroy it. |
1169 | If visible, hide the overlay, but do not destroy it. |
1153 | .ie n .IP "$overlay\->show" 4 |
1170 | .ie n .IP "$overlay\->show" 4 |