diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-23 08:12:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-23 08:12:54 +0000 |
commit | c7d001465cdb2956b6d0804b1ab34104846275ce (patch) | |
tree | fc8b9a0d16a246fd19499c5ad24c389c046806b9 /ext/pty/README | |
parent | 0de2d84af82935ba01ba1d3328c9fdcf287bf3e1 (diff) | |
download | ruby-c7d001465cdb2956b6d0804b1ab34104846275ce.tar.gz |
* NEWS (ptr): new method and deprecated methods. [ruby-dev:41681]
* ext/pty/{README,README.ja}: ditto.
* ext/pty/pty.c (pty_check): add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/README')
-rw-r--r-- | ext/pty/README | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/pty/README b/ext/pty/README index 42c7d4f891..d6368f3758 100644 --- a/ext/pty/README +++ b/ext/pty/README @@ -43,6 +43,25 @@ following module fungtions: These functions are obsolete in this version of pty. + PTY.open + + Allocates a pty (pseudo-terminal). + + It returns an array which contains an IO object and a File object. + The former is the master of the pty. + The latter is the slave of the pty. + + If a block is given, it yields the array instead of return. + The value of the block is returned. + master_io and slave_file is closed when return if they are not closed. + + PTY.check(pid[, raise=false]) + + checks the status of the child process specified by pid, and + returns nil if the process is still alive and active. + Otherwise, returns Process::Status about the process if raise is + false, or PTY::ChildExited exception is raised. + 4. License (C) Copyright 1998 by Akinori Ito. |