--- rxvt-unicode/src/urxvt.pm 2006/01/06 01:27:27 1.35 +++ rxvt-unicode/src/urxvt.pm 2006/01/06 03:40:19 1.37 @@ -139,7 +139,10 @@ =item on_init $term Called after a new terminal object has been initialized, but before -windows are created or the command gets run. +windows are created or the command gets run. Most methods are unsafe to +call or deliver senseless data, as terminal size and other characteristics +have not yet been determined. You can safely query and change resources, +though. =item on_reset $term @@ -260,6 +263,21 @@ C action bound to it (see description of the B resource in the @@RXVT_NAME@@(1) manpage). +=item on_key_press $term, $event + +=item on_key_release $term, $event + +=item on_button_press $term, $event + +=item on_button_release $term, $event + +=item on_motion_notify $term, $event + +Called whenever the corresponding X event is received for the terminal. If +the hook returns true, then the even will be ignored by rxvt-unicode. + +subwindow. + =back =head2 Variables in the C Package @@ -277,6 +295,14 @@ =over 4 +=item $term = new urxvt [arg...] + +Creates a new terminal, very similar as if you had started it with +C. Croaks (and probably outputs an error message) +if the new instance couldn't be created. Returns C if the new +instance didn't initialise perl, and the terminal object otherwise. The +C and C hooks will be called during the call. + =item urxvt::fatal $errormessage Fatally aborts execution with the given error message. Avoid at all @@ -503,6 +529,10 @@ =over 4 +=item $term->destroy + +Destroy the terminal object (close the window, free resources etc.). + =item $value = $term->resource ($name[, $newval]) Returns the current resource value associated with a given name and @@ -652,6 +682,12 @@ confused by changes in cursor position or scrolling. Its useful inside a C hook, though. +=item $term->cmd_parse ($octets) + +Similar to C, but the argument must be in the +locale-specific encoding of the terminal and can contain command sequences +(escape codes) that will be interpreted. + =item $term->tt_write ($octets) Write the octets given in C<$data> to the tty (i.e. as program input). To