ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.266 by root, Sat Jul 24 11:58:27 2021 UTC vs.
Revision 1.267 by sf-exg, Sat Jul 24 12:17:08 2021 UTC

120different types of metadata. These comments are scanned whenever a 120different types of metadata. These comments are scanned whenever a
121terminal is created and are typically used to autoload extensions when 121terminal is created and are typically used to autoload extensions when
122their resources or command line parameters are used. 122their resources or command line parameters are used.
123 123
124Currently, it recognises these comments below. Individual components are 124Currently, it recognises these comments below. Individual components are
125separated by cololns (C<:>), and shoudl not contain colons themselves - 125separated by colons (C<:>), and should not contain colons themselves -
126there is also currently no escaping mechanism provided for this. 126there is also currently no escaping mechanism provided for this.
127 127
128=over 128=over
129 129
130=item #:META:RESOURCE:name:type:desc 130=item #:META:RESOURCE:name:type:desc
134or C<string>, and C<desc> is the resource description. 134or C<string>, and C<desc> is the resource description.
135 135
136The extension will be autoloaded when this resource is specified or used 136The extension will be autoloaded when this resource is specified or used
137as a command line parameter. 137as a command line parameter.
138 138
139Example: matcher provides the C<matcher.launcher> ressource by having this 139Example: matcher provides the C<matcher.launcher> resource by having this
140comment: 140comment:
141 141
142 #:META:RESOURCE:%.launcher:string:default launcher command 142 #:META:RESOURCE:%.launcher:string:default launcher command
143 143
144Example: load this extension when the C<-tr> command line option or 144Example: load this extension when the C<-tr> command line option or
154 154
155This will cause the extension to be autoloaded when the OSC sequence is 155This will cause the extension to be autoloaded when the OSC sequence is
156used for the first time. 156used for the first time.
157 157
158Note that autoloading carries some extra responsibilities with it: 158Note that autoloading carries some extra responsibilities with it:
159although the terminal cnanot really protect itself against malicious 159although the terminal cannot really protect itself against malicious
160sources of command sequences, therefore relying on the programs running 160sources of command sequences, therefore relying on the programs running
161I<inside> to sanitize data that they output, it is very common for 161I<inside> to sanitize data that they output, it is very common for
162programs to emit command sequences from untrusted sources. 162programs to emit command sequences from untrusted sources.
163 163
164While this means that extensions should, as a defense-in-depth mechanism, 164While this means that extensions should, as a defense-in-depth mechanism,
1202 $proxy->enable ($name => $ref); 1202 $proxy->enable ($name => $ref);
1203 } 1203 }
1204 } 1204 }
1205} 1205}
1206 1206
1207# map extension name to filesyystem path 1207# map extension name to filesystem path
1208sub extension_path { 1208sub extension_path {
1209 (grep -f $_, map "$_/$_[1]", $_[0]->perl_libdirs)[0] 1209 (grep -f $_, map "$_/$_[1]", $_[0]->perl_libdirs)[0]
1210} 1210}
1211 1211
1212# load an extension by name 1212# load an extension by name
2001where one character corresponds to one screen cell. See 2001where one character corresponds to one screen cell. See
2002C<< $term->ROW_t >> for details. 2002C<< $term->ROW_t >> for details.
2003 2003
2004=item $string = $term->special_decode $text 2004=item $string = $term->special_decode $text
2005 2005
2006Converts rxvt-unicodes text representation into a perl string. See 2006Converts rxvt-unicode's text representation into a perl string. See
2007C<< $term->ROW_t >> for details. 2007C<< $term->ROW_t >> for details.
2008 2008
2009=item $success = $term->grab_button ($button, $modifiermask[, $window = $term->vt]) 2009=item $success = $term->grab_button ($button, $modifiermask[, $window = $term->vt])
2010 2010
2011=item $term->ungrab_button ($button, $modifiermask[, $window = $term->vt]) 2011=item $term->ungrab_button ($button, $modifiermask[, $window = $term->vt])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines