-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: fb5e96630eb5939d6e22077508233d6a3ed86d00: path_to: revision_to:
commit fb5e96630eb5939d6e22077508233d6a3ed86d00 Author: Marc Lehmann <schmorp@schmorp.de> Date: Wed Jan 11 01:01:52 2006 +0000 *** empty log message *** diff --git a/doc/rxvtperl.3.html b/doc/rxvtperl.3.html
--- a/doc/rxvtperl.3.html +++ b/doc/rxvtperl.3.html @@ -185,7 +185,7 @@ hints on what they mean:</p> </dt> <dd> Rxvt-unicodes special way of encoding text, where one ``unicode'' character -always represents one screen cell. See <em>row_t</em> for a discussion of this format. +always represents one screen cell. See <a href="#item_row_t">ROW_t</a> for a discussion of this format. </dd> <p></p> <dt><strong><a name="item__24string">$string</a></strong><br /> @@ -478,9 +478,7 @@ The basename of the installed binaries, usually <code>urxvt</code>. The current terminal. This variable stores the current <code>urxvt::term</code> object, whenever a callback/hook is executing. </dd> -<p></p> -<dt></dt> -</dl> +<p></p></dl> <p> </p> <h2><a name="functions_in_the_urxvt_package">Functions in the <code>urxvt</code> Package</a></h2> @@ -611,11 +609,11 @@ work.</p> </dt> <dd> Creates a new terminal, very similar as if you had started it with system -<code>$rxvtname, arg...</code>. <code>$envhashref</code> must be a reference to a %ENV>-like -<code></code>hash which defines the environment of the new terminal. +<code>$rxvtname, arg...</code>. <code>$envhashref</code> must be a reference to a <code>%ENV</code>-like +hash which defines the environment of the new terminal. </dd> <dd> -<p>>Croaks (and probably outputs an error message) if the new instance +<p>Croaks (and probably outputs an error message) if the new instance couldn't be created. Returns <code>undef</code> if the new instance didn't initialise perl, and the terminal object otherwise. The <code>init</code> and <a href="#item_start"><code>start</code></a> hooks will be called during this call.</p> diff --git a/doc/rxvtperl.3.man.in b/doc/rxvtperl.3.man.in
--- a/doc/rxvtperl.3.man.in +++ b/doc/rxvtperl.3.man.in @@ -246,7 +246,7 @@ hints on what they mean: .IP "$text" 4 .IX Item "$text" Rxvt-unicodes special way of encoding text, where one \*(L"unicode\*(R" character -always represents one screen cell. See row_t for a discussion of this format. +always represents one screen cell. See ROW_t for a discussion of this format. .IP "$string" 4 .IX Item "$string" A perl text string, with an emphasis on \fItext\fR. It can store all unicode @@ -477,15 +477,12 @@ The basename of the installed binaries, usually \f(CW\*(C`urxvt\*(C'\fR. .IX Item "$urxvt::TERM" The current terminal. This variable stores the current \f(CW\*(C`urxvt::term\*(C'\fR object, whenever a callback/hook is executing. -.IP "*" 4 .ie n .Sh "Functions in the ""urxvt"" Package" .el .Sh "Functions in the \f(CWurxvt\fP Package" .IX Subsection "Functions in the urxvt Package" -.PD 0 .ie n .IP "urxvt::fatal $errormessage" 4 .el .IP "urxvt::fatal \f(CW$errormessage\fR" 4 .IX Item "urxvt::fatal $errormessage" -.PD Fatally aborts execution with the given error message. Avoid at all costs! The only time this is acceptable is when the terminal process starts up. @@ -581,11 +578,10 @@ work. .el .IP "$term = new urxvt::term \f(CW$envhashref\fR, \f(CW$rxvtname\fR, [arg...]" 4 .IX Item "$term = new urxvt::term $envhashref, $rxvtname, [arg...]" Creates a new terminal, very similar as if you had started it with system -\&\f(CW\*(C`$rxvtname, arg...\*(C'\fR. \f(CW$envhashref\fR must be a reference to a \f(CW%ENV\fR>\-like -\&\f(CW\*(C`hash which defines the environment of the new terminal. - -\&\*(C'\fR.Sp ->Croaks (and probably outputs an error message) if the new instance +\&\f(CW\*(C`$rxvtname, arg...\*(C'\fR. \f(CW$envhashref\fR must be a reference to a \f(CW%ENV\fR\-like +hash which defines the environment of the new terminal. +.Sp +Croaks (and probably outputs an error message) if the new instance couldn't be created. Returns \f(CW\*(C`undef\*(C'\fR if the new instance didn't initialise perl, and the terminal object otherwise. The \f(CW\*(C`init\*(C'\fR and \&\f(CW\*(C`start\*(C'\fR hooks will be called during this call. @@ -1022,7 +1018,7 @@ Displays the popup (which is initially hidden). .IX Subsection "The urxvt::timer Class" This class implements timer watchers/events. Time is represented as a fractional number of seconds since the epoch. Example: -.Sp +.PP .Vb 8 \& $term->{overlay} = $term->overlay (-1, 0, 8, 1, urxvt::OVERLAY_RSTYLE, 0); \& $term->{timer} = urxvt::timer @@ -1033,7 +1029,6 @@ fractional number of seconds since the epoch. Example: \& sprintf "%2d:%02d:%02d", (localtime urxvt::NOW)[2,1,0]); \& }); .Ve -.RS 4 .IP "$timer = new urxvt::timer" 4 .IX Item "$timer = new urxvt::timer" Create a new timer object in started state. It is scheduled to fire @@ -1068,13 +1063,11 @@ Set the event trigger time to \f(CW$tstamp\fR and start the timer. .el .IP "$timer = \f(CW$timer\fR\->stop" 4 .IX Item "$timer = $timer->stop" Stop the timer. -.RE -.RS 4 .ie n .Sh "The ""urxvt::iow"" Class" .el .Sh "The \f(CWurxvt::iow\fP Class" .IX Subsection "The urxvt::iow Class" This class implements io watchers/events. Example: -.Sp +.PP .Vb 12 \& $term->{socket} = ... \& $term->{iow} = urxvt::iow @@ -1115,8 +1108,6 @@ Start watching for requested events on the given handle. .el .IP "$iow = \f(CW$iow\fR\->stop" 4 .IX Item "$iow = $iow->stop" Stop watching for events on the given filehandle. -.RE -.RS 4 .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" .Sh "\s-1URXVT_PERL_VERBOSITY\s0" @@ -1130,8 +1121,6 @@ numbers indicate more verbose output. .IX Item ">= 3 - script loading and management" .IP ">=10 \- all events received" 4 .IX Item ">=10 - all events received" -.RE -.RS 4 .PD .SH "AUTHOR" .IX Header "AUTHOR" diff --git a/doc/rxvtperl.3.txt b/doc/rxvtperl.3.txt
--- a/doc/rxvtperl.3.txt +++ b/doc/rxvtperl.3.txt @@ -100,7 +100,7 @@ API DOCUMENTATION $text Rxvt-unicodes special way of encoding text, where one "unicode" - character always represents one screen cell. See row_t for a + character always represents one screen cell. See ROW_t for a discussion of this format. $string @@ -301,8 +301,6 @@ API DOCUMENTATION The current terminal. This variable stores the current "urxvt::term" object, whenever a callback/hook is executing. - * - Functions in the "urxvt" Package urxvt::fatal $errormessage Fatally aborts execution with the given error message. Avoid at all @@ -384,10 +382,9 @@ API DOCUMENTATION $term = new urxvt::term $envhashref, $rxvtname, [arg...] Creates a new terminal, very similar as if you had started it with system "$rxvtname, arg...". $envhashref must be a reference to a - %ENV>-like "hash which defines the environment of the new terminal. - " + %ENV-like hash which defines the environment of the new terminal. - >Croaks (and probably outputs an error message) if the new instance + Croaks (and probably outputs an error message) if the new instance couldn't be created. Returns "undef" if the new instance didn't initialise perl, and the terminal object otherwise. The "init" and "start" hooks will be called during this call. @@ -738,92 +735,92 @@ API DOCUMENTATION Displays the popup (which is initially hidden). The "urxvt::timer" Class - This class implements timer watchers/events. Time is represented as - a fractional number of seconds since the epoch. Example: + This class implements timer watchers/events. Time is represented as a + fractional number of seconds since the epoch. Example: - $term->{overlay} = $term->overlay (-1, 0, 8, 1, urxvt::OVERLAY_RSTYLE, 0); - $term->{timer} = urxvt::timer - ->new - ->interval (1) - ->cb (sub { - $term->{overlay}->set (0, 0, - sprintf "%2d:%02d:%02d", (localtime urxvt::NOW)[2,1,0]); - }); + $term->{overlay} = $term->overlay (-1, 0, 8, 1, urxvt::OVERLAY_RSTYLE, 0); + $term->{timer} = urxvt::timer + ->new + ->interval (1) + ->cb (sub { + $term->{overlay}->set (0, 0, + sprintf "%2d:%02d:%02d", (localtime urxvt::NOW)[2,1,0]); + }); - $timer = new urxvt::timer - Create a new timer object in started state. It is scheduled to - fire immediately. + $timer = new urxvt::timer + Create a new timer object in started state. It is scheduled to fire + immediately. - $timer = $timer->cb (sub { my ($timer) = @_; ... }) - Set the callback to be called when the timer triggers. + $timer = $timer->cb (sub { my ($timer) = @_; ... }) + Set the callback to be called when the timer triggers. - $tstamp = $timer->at - Return the time this watcher will fire next. + $tstamp = $timer->at + Return the time this watcher will fire next. - $timer = $timer->set ($tstamp) - Set the time the event is generated to $tstamp. + $timer = $timer->set ($tstamp) + Set the time the event is generated to $tstamp. - $timer = $timer->interval ($interval) - Normally (and when $interval is 0), the timer will automatically - stop after it has fired once. If $interval is non-zero, then the - timer is automatically rescheduled at the given intervals. + $timer = $timer->interval ($interval) + Normally (and when $interval is 0), the timer will automatically + stop after it has fired once. If $interval is non-zero, then the + timer is automatically rescheduled at the given intervals. - $timer = $timer->start - Start the timer. + $timer = $timer->start + Start the timer. - $timer = $timer->start ($tstamp) - Set the event trigger time to $tstamp and start the timer. + $timer = $timer->start ($tstamp) + Set the event trigger time to $tstamp and start the timer. - $timer = $timer->stop - Stop the timer. + $timer = $timer->stop + Stop the timer. The "urxvt::iow" Class - This class implements io watchers/events. Example: - - $term->{socket} = ... - $term->{iow} = urxvt::iow - ->new - ->fd (fileno $term->{socket}) - ->events (urxvt::EVENT_READ) - ->start - ->cb (sub { - my ($iow, $revents) = @_; - # $revents must be 1 here, no need to check - sysread $term->{socket}, my $buf, 8192 - or end-of-file; - }); - - $iow = new urxvt::iow - Create a new io watcher object in stopped state. - - $iow = $iow->cb (sub { my ($iow, $reventmask) = @_; ... }) - Set the callback to be called when io events are triggered. - $reventmask is a bitset as described in the "events" method. - - $iow = $iow->fd ($fd) - Set the filedescriptor (not handle) to watch. - - $iow = $iow->events ($eventmask) - Set the event mask to watch. The only allowed values are - "urxvt::EVENT_READ" and "urxvt::EVENT_WRITE", which might be - ORed together, or "urxvt::EVENT_NONE". - - $iow = $iow->start - Start watching for requested events on the given handle. - - $iow = $iow->stop - Stop watching for events on the given filehandle. + This class implements io watchers/events. Example: + + $term->{socket} = ... + $term->{iow} = urxvt::iow + ->new + ->fd (fileno $term->{socket}) + ->events (urxvt::EVENT_READ) + ->start + ->cb (sub { + my ($iow, $revents) = @_; + # $revents must be 1 here, no need to check + sysread $term->{socket}, my $buf, 8192 + or end-of-file; + }); + + $iow = new urxvt::iow + Create a new io watcher object in stopped state. + + $iow = $iow->cb (sub { my ($iow, $reventmask) = @_; ... }) + Set the callback to be called when io events are triggered. + $reventmask is a bitset as described in the "events" method. + + $iow = $iow->fd ($fd) + Set the filedescriptor (not handle) to watch. + + $iow = $iow->events ($eventmask) + Set the event mask to watch. The only allowed values are + "urxvt::EVENT_READ" and "urxvt::EVENT_WRITE", which might be ORed + together, or "urxvt::EVENT_NONE". + + $iow = $iow->start + Start watching for requested events on the given handle. + + $iow = $iow->stop + Stop watching for events on the given filehandle. ENVIRONMENT URXVT_PERL_VERBOSITY - This variable controls the verbosity level of the perl extension. - Higher numbers indicate more verbose output. + This variable controls the verbosity level of the perl extension. Higher + numbers indicate more verbose output. - == 0 - fatal messages - >= 3 - script loading and management - >=10 - all events received + == 0 - fatal messages + >= 3 - script loading and management + >=10 - all events received AUTHOR - Marc Lehmann <pcg@goof.com> - http://software.schmorp.de/pkg/rxvt-unicode + Marc Lehmann <pcg@goof.com> + http://software.schmorp.de/pkg/rxvt-unicode diff --git a/src/urxvt.pm b/src/urxvt.pm
--- a/src/urxvt.pm +++ b/src/urxvt.pm @@ -125,7 +125,7 @@ hints on what they mean: =item $text Rxvt-unicodes special way of encoding text, where one "unicode" character -always represents one screen cell. See L<row_t> for a discussion of this format. +always represents one screen cell. See L<ROW_t> for a discussion of this format. =item $string @@ -388,8 +388,6 @@ The basename of the installed binaries, usually C<urxvt>. The current terminal. This variable stores the current C<urxvt::term> object, whenever a callback/hook is executing. -=item - =back =head2 Functions in the C<urxvt> Package @@ -784,8 +782,8 @@ sub register_package { =item $term = new urxvt::term $envhashref, $rxvtname, [arg...] Creates a new terminal, very similar as if you had started it with system -C<$rxvtname, arg...>. C<$envhashref> must be a reference to a %ENV>-like -C<hash which defines the environment of the new terminal. +C<$rxvtname, arg...>. C<$envhashref> must be a reference to a C<%ENV>-like +hash which defines the environment of the new terminal. Croaks (and probably outputs an error message) if the new instance couldn't be created. Returns C<undef> if the new instance didn't @@ -1444,6 +1442,8 @@ sub DESTROY { $self->{term}->ungrab; } +=back + =head2 The C<urxvt::timer> Class This class implements timer watchers/events. Time is represented as a
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 12:55:17 2024