summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-09 16:32:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-09 16:32:52 +0000
commitcb61fcb98813b30e94b3c7507f00433b845a1e66 (patch)
tree68ef9f272a59115855e29ed299b68a792b8601bb /ext/pty/pty.c
parent64dee0063bd3eb6631c8ec62fe3b2bf86c4fee22 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r--ext/pty/pty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 9650f53..9026daf 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -462,8 +462,9 @@ pty_close_pty(VALUE assoc)
* # assuming that factor uses stdio for stdout buffering.
* # If IO.pipe is used instead of PTY.open,
* # this code deadlocks because factor's stdout is fully buffered.
+ * require 'io/console' # for IO#raw!
* m, s = PTY.open
- * system("stty raw", :in=>s) # disable newline conversion.
+ * s.raw! # disable newline conversion.
* r, w = IO.pipe
* pid = spawn("factor", :in=>r, :out=>s)
* r.close