… | |
… | |
1393 | Tries to make a selection as set by C<selection_beg> and |
1393 | Tries to make a selection as set by C<selection_beg> and |
1394 | C<selection_end>. If C<$rectangular> is true (default: false), a |
1394 | C<selection_end>. If C<$rectangular> is true (default: false), a |
1395 | rectangular selection will be made. This is the prefered function to make |
1395 | rectangular selection will be made. This is the prefered function to make |
1396 | a selection. |
1396 | a selection. |
1397 | |
1397 | |
1398 | =item $success = $term->selection_grab ($eventtime) |
1398 | =item $success = $term->selection_grab ($eventtime[, $clipboard]) |
1399 | |
1399 | |
1400 | Try to request the primary selection text from the server (for example, as |
1400 | Try to acquire ownership of the primary (clipboard if C<$clipboard> is |
|
|
1401 | true) selection from the server. The corresponding text can be set |
1401 | set by the next method). No visual feedback will be given. This function |
1402 | with the next method. No visual feedback will be given. This function |
1402 | is mostly useful from within C<on_sel_grab> hooks. |
1403 | is mostly useful from within C<on_sel_grab> hooks. |
1403 | |
1404 | |
1404 | =item $oldtext = $term->selection ([$newtext]) |
1405 | =item $oldtext = $term->selection ([$newtext, $clipboard]) |
1405 | |
1406 | |
1406 | Return the current selection text and optionally replace it by C<$newtext>. |
1407 | Return the current selection (clipboard if C<$clipboard> is true) text |
|
|
1408 | and optionally replace it by C<$newtext>. |
|
|
1409 | |
|
|
1410 | =item $term->selection_clear ([$clipboard]) |
|
|
1411 | |
|
|
1412 | Revoke ownership of the primary (clipboard if C<$clipboard> is true) selection. |
1407 | |
1413 | |
1408 | =item $term->overlay_simple ($x, $y, $text) |
1414 | =item $term->overlay_simple ($x, $y, $text) |
1409 | |
1415 | |
1410 | Create a simple multi-line overlay box. See the next method for details. |
1416 | Create a simple multi-line overlay box. See the next method for details. |
1411 | |
1417 | |