summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-09 00:36:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-09 00:36:38 +0000
commitc8892037c7af9f4b52a692ea7db2f7062b6969e4 (patch)
treedc7d93b9adbecd3267b9a29de740216c01a0bacc /ext/pty/pty.c
parent5d379991de3fa21113c64c8465fa3403e2b69a7f (diff)
revert previous doc. change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r--ext/pty/pty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index ff506a1..9650f53 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -462,10 +462,10 @@ 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"
* m, s = PTY.open
+ * system("stty raw", :in=>s) # disable newline conversion.
* r, w = IO.pipe
- * pid = s.raw { spawn("factor", :in=>r, :out=>s) }
+ * pid = spawn("factor", :in=>r, :out=>s)
* r.close
* s.close
* w.puts "42"