… | |
… | |
121 | <dd> |
121 | <dd> |
122 | <pre> |
122 | <pre> |
123 | URxvt.selection.pattern-0: \\|([^|]+)\\|</pre> |
123 | URxvt.selection.pattern-0: \\|([^|]+)\\|</pre> |
124 | </dd> |
124 | </dd> |
125 | <dd> |
125 | <dd> |
|
|
126 | <p>Another example: Programs I use often output ``absolute path: '' at the |
|
|
127 | beginning of a line when they process multiple files. The following |
|
|
128 | pattern matches the filename (note, there is a single space at the very |
|
|
129 | end):</p> |
|
|
130 | </dd> |
|
|
131 | <dd> |
|
|
132 | <pre> |
|
|
133 | URxvt.selection.pattern-0: ^(/[^:]+):\</pre> |
|
|
134 | </dd> |
|
|
135 | <dd> |
126 | <p>You can look at the source of the selection extension to see more |
136 | <p>You can look at the source of the selection extension to see more |
127 | interesting uses, such as parsing a line from beginning to end.</p> |
137 | interesting uses, such as parsing a line from beginning to end.</p> |
128 | </dd> |
138 | </dd> |
129 | <dd> |
139 | <dd> |
130 | <p>This extension also offers following bindable keyboard commands:</p> |
140 | <p>This extension also offers following bindable keyboard commands:</p> |
… | |
… | |
208 | </dd> |
218 | </dd> |
209 | <dd> |
219 | <dd> |
210 | <p>To avoid too many false positives, this is only done when:</p> |
220 | <p>To avoid too many false positives, this is only done when:</p> |
211 | </dd> |
221 | </dd> |
212 | <dl> |
222 | <dl> |
|
|
223 | <dt><strong><a name="item__2d_the_tty_is_in_icanon_state_2e">- the tty is in ICANON state.</a></strong><br /> |
|
|
224 | </dt> |
|
|
225 | <dt><strong><a name="item__2d_the_text_cursor_is_visible_2e">- the text cursor is visible.</a></strong><br /> |
|
|
226 | </dt> |
|
|
227 | <dt><strong><a name="item__2d_the_primary_screen_is_currently_being_displaye">- the primary screen is currently being displayed.</a></strong><br /> |
|
|
228 | </dt> |
213 | <dt><strong><a name="item_same">- the mouse is on the same (multi-row-) line as the text cursor.</a></strong><br /> |
229 | <dt><strong><a name="item_same">- the mouse is on the same (multi-row-) line as the text cursor.</a></strong><br /> |
214 | </dt> |
|
|
215 | <dt><strong><a name="item__2d_the_primary_screen_is_currently_being_displaye">- the primary screen is currently being displayed.</a></strong><br /> |
|
|
216 | </dt> |
|
|
217 | <dt><strong><a name="item__2d_the_text_cursor_is_visible_2e">- the text cursor is visible.</a></strong><br /> |
|
|
218 | </dt> |
230 | </dt> |
219 | </dl> |
231 | </dl> |
220 | <p>The normal selection mechanism isn't disabled, so quick successive clicks |
232 | <p>The normal selection mechanism isn't disabled, so quick successive clicks |
221 | might interfere with selection creation in harmless ways.</p> |
233 | might interfere with selection creation in harmless ways.</p> |
222 | <dt><strong><a name="item_selection_2dautotransform">selection-autotransform</a></strong><br /> |
234 | <dt><strong><a name="item_selection_2dautotransform">selection-autotransform</a></strong><br /> |
… | |
… | |
289 | <dd> |
301 | <dd> |
290 | Uses per-line display filtering (<code>on_line_update</code>) to underline urls and |
302 | Uses per-line display filtering (<code>on_line_update</code>) to underline urls and |
291 | make them clickable. When middle-clicked, the program specified in the |
303 | make them clickable. When middle-clicked, the program specified in the |
292 | resource <code>urlLauncher</code> (default <code>x-www-browser</code>) will be started with |
304 | resource <code>urlLauncher</code> (default <code>x-www-browser</code>) will be started with |
293 | the URL as first argument. |
305 | the URL as first argument. |
|
|
306 | </dd> |
|
|
307 | <p></p> |
|
|
308 | <dt><strong><a name="item_xim_2donthespot">xim-onthespot</a></strong><br /> |
|
|
309 | </dt> |
|
|
310 | <dd> |
|
|
311 | This (experimental) perl extension implements OnTheSpot editing. It does |
|
|
312 | not work perfectly, and some input methods don't seem to work well with |
|
|
313 | OnTheSpot editing in general, but it seems to work at leats for SCIM and |
|
|
314 | kinput2. |
|
|
315 | </dd> |
|
|
316 | <dd> |
|
|
317 | <p>You enable it by specifying this extension and a preedit style of |
|
|
318 | <code>OnTheSpot</code>, i.e.:</p> |
|
|
319 | </dd> |
|
|
320 | <dd> |
|
|
321 | <pre> |
|
|
322 | rxvt -pt OnTheSpot -pe xim-onthespot</pre> |
294 | </dd> |
323 | </dd> |
295 | <p></p> |
324 | <p></p> |
296 | <dt><strong><a name="item_automove_2dbackground">automove-background</a></strong><br /> |
325 | <dt><strong><a name="item_automove_2dbackground">automove-background</a></strong><br /> |
297 | </dt> |
326 | </dt> |
298 | <dd> |
327 | <dd> |
… | |
… | |
475 | </dd> |
504 | </dd> |
476 | <p></p> |
505 | <p></p> |
477 | <dt><strong><a name="item_on_destroy__24term">on_destroy $term</a></strong><br /> |
506 | <dt><strong><a name="item_on_destroy__24term">on_destroy $term</a></strong><br /> |
478 | </dt> |
507 | </dt> |
479 | <dd> |
508 | <dd> |
480 | Called whenever something tries to destroy terminal, before doing anything |
509 | Called whenever something tries to destroy terminal, when the terminal is |
481 | yet. If this hook returns true, then destruction is skipped, but this is |
510 | still fully functional (not for long, though). |
482 | rarely a good idea. |
|
|
483 | </dd> |
511 | </dd> |
484 | <p></p> |
512 | <p></p> |
485 | <dt><strong><a name="item_on_reset__24term">on_reset $term</a></strong><br /> |
513 | <dt><strong><a name="item_on_reset__24term">on_reset $term</a></strong><br /> |
486 | </dt> |
514 | </dt> |
487 | <dd> |
515 | <dd> |
… | |
… | |
1197 | be used to suppress input and output handling to the pty/tty. See the |
1225 | be used to suppress input and output handling to the pty/tty. See the |
1198 | description of <a href="#item_events"><code>urxvt::timer->events</code></a>. Make sure to always restore |
1226 | description of <a href="#item_events"><code>urxvt::timer->events</code></a>. Make sure to always restore |
1199 | the previous value. |
1227 | the previous value. |
1200 | </dd> |
1228 | </dd> |
1201 | <p></p> |
1229 | <p></p> |
|
|
1230 | <dt><strong><a name="item_pty_fd">$fd = $term->pty_fd</a></strong><br /> |
|
|
1231 | </dt> |
|
|
1232 | <dd> |
|
|
1233 | Returns the master file descriptor for the pty in use, or <code>-1</code> if no pty |
|
|
1234 | is used. |
|
|
1235 | </dd> |
|
|
1236 | <p></p> |
1202 | <dt><strong><a name="item_parent">$windowid = $term->parent</a></strong><br /> |
1237 | <dt><strong><a name="item_parent">$windowid = $term->parent</a></strong><br /> |
1203 | </dt> |
1238 | </dt> |
1204 | <dd> |
1239 | <dd> |
1205 | Return the window id of the toplevel window. |
1240 | Return the window id of the toplevel window. |
1206 | </dd> |
1241 | </dd> |
… | |
… | |
1325 | line, starting at column <code>$start_col</code> (default <code>0</code>), which is useful |
1360 | line, starting at column <code>$start_col</code> (default <code>0</code>), which is useful |
1326 | to replace only parts of a line. The font index in the rendition will |
1361 | to replace only parts of a line. The font index in the rendition will |
1327 | automatically be updated.</p> |
1362 | automatically be updated.</p> |
1328 | </dd> |
1363 | </dd> |
1329 | <dd> |
1364 | <dd> |
1330 | <p><a href="#item__24text"><code>$text</code></a> is in a special encoding: tabs and wide characters that use |
1365 | <p><a href="#item__24text"><code>$text</code></a> is in a special encoding: tabs and wide characters that use more |
1331 | more than one cell when displayed are padded with <code>$urxvt::NOCHAR</code> |
1366 | than one cell when displayed are padded with <code>$urxvt::NOCHAR</code> (chr 65535) |
1332 | characters. Characters with combining characters and other characters that |
1367 | characters. Characters with combining characters and other characters that |
1333 | do not fit into the normal tetx encoding will be replaced with characters |
1368 | do not fit into the normal tetx encoding will be replaced with characters |
1334 | in the private use area.</p> |
1369 | in the private use area.</p> |
1335 | </dd> |
1370 | </dd> |
1336 | <dd> |
1371 | <dd> |