1 pty extension version 0.3 by A.ito
5 This extension module adds ruby a functionality to execute an
6 arbitrary command through pseudo tty (pty).
10 Follow the instruction below.
16 then Makefile is generated.
18 (3) Do make; make install.
22 This extension module defines a module named PTY, which contains
23 following module fungtions:
28 This function reserves a pty, executes command over the pty
29 and returns an array. The return value is an array with three
30 elements. The first element in the array is for reading and the
31 second for writing. The third element is the process ID of the
32 child process. If this function is called with an iterator block,
33 the array is passed to the block as block parameters, and the
34 function itself returns nil.
36 When the child process is suspended or finished, an exception is
37 raised. If this function is called with an iterator block,
38 exception is raised only within the block. Child process
39 monitor is terminated on block exit.
44 These functions are obsolete in this version of pty.
48 (C) Copyright 1998 by Akinori Ito.
50 This software may be redistributed freely for this purpose, in full
51 or in part, provided that this entire copyright notice is included
52 on any copies of this software and applications and derivations thereof.
54 This software is provided on an "as is" basis, without warranty of any
55 kind, either expressed or implied, as to any matter including, but not
56 limited to warranty of fitness of purpose, or merchantability, or
57 results obtained from use of this software.
61 Please feel free to send E-mail to
63 aito@ei5sun.yz.yamagata-u.ac.jp
65 for any bug report, opinion, contribution, etc.