ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvt.1.html
(Generate patch)

Comparing rxvt-unicode/doc/rxvt.1.html (file contents):
Revision 1.17 by root, Thu Feb 17 15:07:48 2005 UTC vs.
Revision 1.19 by root, Sat Feb 19 01:08:26 2005 UTC

545<p>Here is a short Gtk2-perl snippet that illustrates how this option can be 545<p>Here is a short Gtk2-perl snippet that illustrates how this option can be
546used (a longer example is in <em>doc/embed</em>):</p> 546used (a longer example is in <em>doc/embed</em>):</p>
547</dd> 547</dd>
548<dd> 548<dd>
549<pre> 549<pre>
550 my $rxvt = new Gtk2::DrawingArea; 550 my $rxvt = new Gtk2::Socket;
551 $...-&gt;add ($rxvt); # important to add it somewhere first 551 $rxvt-&gt;signal_connect_after (realize =&gt; sub {
552 $rxvt-&gt;realize; # now it can be realized
553 my $xid = $rxvt-&gt;window-&gt;get_xid;</pre> 552 my $xid = $_[0]-&gt;window-&gt;get_xid;
554</dd>
555<dd>
556<pre>
557 system &quot;rxvt -embed $xid &amp;&quot;;</pre> 553 system &quot;rxvt -embed $xid &amp;&quot;;
554 });</pre>
558</dd> 555</dd>
559<p></p> 556<p></p>
560<dt><strong><a name="item__2dpty_2dfd_fileno"><strong>-pty-fd</strong> <em>fileno</em></a></strong><br /> 557<dt><strong><a name="item__2dpty_2dfd_fileno"><strong>-pty-fd</strong> <em>fileno</em></a></strong><br />
561</dt> 558</dt>
562<dd> 559<dd>
580 use Fcntl;</pre> 577 use Fcntl;</pre>
581</dd> 578</dd>
582<dd> 579<dd>
583<pre> 580<pre>
584 my $pty = new IO::Pty; 581 my $pty = new IO::Pty;
585 fcntl $pty, F_SETFD, 0; # clear close-on-exec</pre> 582 fcntl $pty, F_SETFD, 0; # clear close-on-exec
586</dd>
587<dd>
588<pre>
589 system &quot;rxvt -pty-fd &quot; . (fileno $pty) . &quot;&amp;&quot;;</pre> 583 system &quot;rxvt -pty-fd &quot; . (fileno $pty) . &quot;&amp;&quot;;
584 close $pty;</pre>
590</dd> 585</dd>
591<dd> 586<dd>
592<pre> 587<pre>
593 # now communicate with rxvt 588 # now communicate with rxvt
594 my $slave = $pty-&gt;slave; 589 my $slave = $pty-&gt;slave;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines