… | |
… | |
289 | a C<perl:string> action bound to a key, see description of the B<keysym> |
289 | a C<perl:string> action bound to a key, see description of the B<keysym> |
290 | resource in the urxvt(1) manpage). |
290 | resource in the urxvt(1) manpage). |
291 | |
291 | |
292 | The event is simply the action string. This interface is going away in |
292 | The event is simply the action string. This interface is going away in |
293 | preference to the C<< ->register_keysym_action >> method. |
293 | preference to the C<< ->register_keysym_action >> method. |
294 | |
|
|
295 | =item on_register_command $term, $keysym, $modifiermask, $string |
|
|
296 | |
|
|
297 | Called after parsing a keysym resource but before registering the |
|
|
298 | associated binding. If this hook returns a true value the binding |
|
|
299 | is not registered. It can be used to modify a binding by calling |
|
|
300 | C<register_command>. |
|
|
301 | |
294 | |
302 | =item on_resize_all_windows $term, $new_width, $new_height |
295 | =item on_resize_all_windows $term, $new_width, $new_height |
303 | |
296 | |
304 | Called just after the new window size has been calculated, but before |
297 | Called just after the new window size has been calculated, but before |
305 | windows are actually being resized or hints are being set. If this hook |
298 | windows are actually being resized or hints are being set. If this hook |
… | |
… | |
1264 | =item $success = $term->parse_keysym ($key, $octets) |
1257 | =item $success = $term->parse_keysym ($key, $octets) |
1265 | |
1258 | |
1266 | Adds a key binding exactly as specified via a resource. See the |
1259 | Adds a key binding exactly as specified via a resource. See the |
1267 | C<keysym> resource in the urxvt(1) manpage. |
1260 | C<keysym> resource in the urxvt(1) manpage. |
1268 | |
1261 | |
1269 | =item $term->register_command ($keysym, $modifiermask, $string) |
|
|
1270 | |
|
|
1271 | Adds a key binding. This is a lower level api compared to |
|
|
1272 | C<parse_keysym>, as it expects a parsed key description, and can be |
|
|
1273 | used only inside either the C<on_init> hook, to add a binding, or the |
|
|
1274 | C<on_register_command> hook, to modify a parsed binding. |
|
|
1275 | |
|
|
1276 | =item $rend = $term->rstyle ([$new_rstyle]) |
1262 | =item $rend = $term->rstyle ([$new_rstyle]) |
1277 | |
1263 | |
1278 | Return and optionally change the current rendition. Text that is output by |
1264 | Return and optionally change the current rendition. Text that is output by |
1279 | the terminal application will use this style. |
1265 | the terminal application will use this style. |
1280 | |
1266 | |