… | |
… | |
915 | =item ($row, $col) = $term->selection_end ([$row, $col]) |
915 | =item ($row, $col) = $term->selection_end ([$row, $col]) |
916 | |
916 | |
917 | Return the current values of the selection mark, begin or end positions, |
917 | Return the current values of the selection mark, begin or end positions, |
918 | and optionally set them to new values. |
918 | and optionally set them to new values. |
919 | |
919 | |
|
|
920 | =item $term->selection_make ($eventtime[, $rectangular]) |
|
|
921 | |
|
|
922 | Tries to make a selection as set by C<selection_beg> and |
|
|
923 | C<selection_end>. If C<$rectangular> is true (default: false), a |
|
|
924 | rectangular selection will be made. This is the prefered function to make |
|
|
925 | a selection. |
|
|
926 | |
920 | =item $success = $term->selection_grab ($eventtime) |
927 | =item $success = $term->selection_grab ($eventtime) |
921 | |
928 | |
922 | Try to request the primary selection from the server (for example, as set |
929 | Try to request the primary selection text from the server (for example, as |
923 | by the next method). |
930 | set by the next method). No visual feedback will be given. This function |
|
|
931 | is mostly useful from within C<on_sel_grab> hooks. |
924 | |
932 | |
925 | =item $oldtext = $term->selection ([$newtext]) |
933 | =item $oldtext = $term->selection ([$newtext]) |
926 | |
934 | |
927 | Return the current selection text and optionally replace it by C<$newtext>. |
935 | Return the current selection text and optionally replace it by C<$newtext>. |
928 | |
936 | |
… | |
… | |
1021 | Convert the given locale-encoded octets into a perl string. |
1029 | Convert the given locale-encoded octets into a perl string. |
1022 | |
1030 | |
1023 | =item $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle]) |
1031 | =item $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle]) |
1024 | |
1032 | |
1025 | XORs the rendition values in the given span with the provided value |
1033 | XORs the rendition values in the given span with the provided value |
1026 | (default: C<RS_RVid>). Useful in refresh hooks to provide effects similar |
1034 | (default: C<RS_RVid>), which I<MUST NOT> contain font styles. Useful in |
1027 | to the selection. |
1035 | refresh hooks to provide effects similar to the selection. |
1028 | |
1036 | |
1029 | =item $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, $rstyle2]]) |
1037 | =item $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, $rstyle2]]) |
1030 | |
1038 | |
1031 | Similar to C<scr_xor_span>, but xors a rectangle instead. Trailing |
1039 | Similar to C<scr_xor_span>, but xors a rectangle instead. Trailing |
1032 | whitespace will additionally be xored with the C<$rstyle2>, which defaults |
1040 | whitespace will additionally be xored with the C<$rstyle2>, which defaults |
1033 | to C<RS_RVid | RS_Uline>, which removes reverse video again and underlines |
1041 | to C<RS_RVid | RS_Uline>, which removes reverse video again and underlines |
1034 | it instead. |
1042 | it instead. Both styles I<MUST NOT> contain font styles. |
1035 | |
1043 | |
1036 | =item $term->scr_bell |
1044 | =item $term->scr_bell |
1037 | |
1045 | |
1038 | Ring the bell! |
1046 | Ring the bell! |
1039 | |
1047 | |