ruby-changes:15781
From: akr <ko1@a...>
Date: Mon, 10 May 2010 01:33:01 +0900 (JST)
Subject: [ruby-changes:15781] Ruby:r27710 (trunk): update doc.
akr 2010-05-10 01:32:52 +0900 (Mon, 10 May 2010) New Revision: 27710 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27710 Log: update doc. Modified files: trunk/ext/pty/pty.c Index: ext/pty/pty.c =================================================================== --- ext/pty/pty.c (revision 27709) +++ ext/pty/pty.c (revision 27710) @@ -462,8 +462,9 @@ * # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/