--- rxvt-unicode/src/urxvt.pm 2006/01/06 01:27:27 1.35 +++ rxvt-unicode/src/urxvt.pm 2006/01/06 02:58:02 1.36 @@ -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 @@ -277,6 +280,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 +514,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 +667,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