From: Matt Mongeau Date: 2013-03-29T05:56:27+09:00 Subject: Re: clear the STDIN --001a11c28d523fdf9f04d90263e4 Content-Type: text/plain; charset=ISO-8859-1 The simple answer is you should never need to do this. So don't. On Thu, Mar 28, 2013 at 4:30 PM, Love U Ruby wrote: > C:\>irb --simple-prompt > DL is deprecated, please use Fiddle > >> STDIN.gets > I am > => "I am\n" > > Now how to print and clear the content of STDIN? > > -- > Posted via http://www.ruby-forum.com/. > > --001a11c28d523fdf9f04d90263e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The simple answer is you should never need to do this. So = don't.


On Thu, Mar 28, 2013 at 4:30 PM, Love U Ruby <lists@ruby-forum.com= > wrote:
C:\>irb --simple-prompt
DL is deprecated, please use Fiddle
>> STDIN.gets
I am
=3D> "I am\n"

Now how to print and clear the content of STDIN?

--
Posted via http://= www.ruby-forum.com/.


--001a11c28d523fdf9f04d90263e4--