… | |
… | |
261 | |
261 | |
262 | Called whenever the user presses a key combination that has a |
262 | Called whenever the user presses a key combination that has a |
263 | C<perl:string> action bound to it (see description of the B<keysym> |
263 | C<perl:string> action bound to it (see description of the B<keysym> |
264 | resource in the @@RXVT_NAME@@(1) manpage). |
264 | resource in the @@RXVT_NAME@@(1) manpage). |
265 | |
265 | |
266 | =item on_key_press $term, $event |
266 | =item on_key_press $term, $event, $octets |
267 | |
267 | |
268 | =item on_key_release $term, $event |
268 | =item on_key_release $term, $event |
269 | |
269 | |
270 | =item on_button_press $term, $event |
270 | =item on_button_press $term, $event |
271 | |
271 | |
272 | =item on_button_release $term, $event |
272 | =item on_button_release $term, $event |
273 | |
273 | |
274 | =item on_motion_notify $term, $event |
274 | =item on_motion_notify $term, $event |
275 | |
275 | |
276 | Called whenever the corresponding X event is received for the terminal. If |
276 | Called whenever the corresponding X event is received for the terminal If |
277 | the hook returns true, then the even will be ignored by rxvt-unicode. |
277 | the hook returns true, then the even will be ignored by rxvt-unicode. |
|
|
278 | |
|
|
279 | The event is a hash with most values as named by Xlib (see the XEvent |
|
|
280 | manpage), with the additional members C<row> and C<col>, which are the row |
|
|
281 | and column under the mouse cursor. |
|
|
282 | |
|
|
283 | C<on_key_press> additionally receives the string rxvt-unicode would |
|
|
284 | output, if any, in locale-specific encoding. |
278 | |
285 | |
279 | subwindow. |
286 | subwindow. |
280 | |
287 | |
281 | =back |
288 | =back |
282 | |
289 | |
… | |
… | |
656 | |
663 | |
657 | If hidden, display the overlay again. |
664 | If hidden, display the overlay again. |
658 | |
665 | |
659 | =back |
666 | =back |
660 | |
667 | |
661 | =item $cellwidth = $term->strwidth $string |
668 | =item $cellwidth = $term->strwidth ($string) |
662 | |
669 | |
663 | Returns the number of screen-cells this string would need. Correctly |
670 | Returns the number of screen-cells this string would need. Correctly |
664 | accounts for wide and combining characters. |
671 | accounts for wide and combining characters. |
665 | |
672 | |
666 | =item $octets = $term->locale_encode $string |
673 | =item $octets = $term->locale_encode ($string) |
667 | |
674 | |
668 | Convert the given text string into the corresponding locale encoding. |
675 | Convert the given text string into the corresponding locale encoding. |
669 | |
676 | |
670 | =item $string = $term->locale_decode $octets |
677 | =item $string = $term->locale_decode ($octets) |
671 | |
678 | |
672 | Convert the given locale-encoded octets into a perl string. |
679 | Convert the given locale-encoded octets into a perl string. |
673 | |
680 | |
674 | =item $term->scr_add_lines ($string) |
681 | =item $term->scr_add_lines ($string) |
675 | |
682 | |
… | |
… | |
691 | =item $term->tt_write ($octets) |
698 | =item $term->tt_write ($octets) |
692 | |
699 | |
693 | Write the octets given in C<$data> to the tty (i.e. as program input). To |
700 | Write the octets given in C<$data> to the tty (i.e. as program input). To |
694 | pass characters instead of octets, you should convert your strings first |
701 | pass characters instead of octets, you should convert your strings first |
695 | to the locale-specific encoding using C<< $term->locale_encode >>. |
702 | to the locale-specific encoding using C<< $term->locale_encode >>. |
|
|
703 | |
|
|
704 | =item $windowid = $term->parent |
|
|
705 | |
|
|
706 | Return the window id of the toplevel window. |
|
|
707 | |
|
|
708 | =item $windowid = $term->vt |
|
|
709 | |
|
|
710 | Return the window id of the terminal window. |
696 | |
711 | |
697 | =item $window_width = $term->width |
712 | =item $window_width = $term->width |
698 | |
713 | |
699 | =item $window_height = $term->height |
714 | =item $window_height = $term->height |
700 | |
715 | |