From: Mark Hubbart Date: 2005-05-10T13:51:39+09:00 Subject: Re: HighLine 0.4.0 On 5/9/05, James Edward Gray II wrote: > On May 9, 2005, at 9:04 PM, Mark Hubbart wrote: > > > You might not want to use stty in that exact way. From the stty > > manpage (on OSX): > > Hey, that's great to know. Thanks. Update: setting "raw" seems to be overkill. It might keep the OS from converting linefeeds and such. Here's the method I'm using in a project I'm working on now: def no_echo state = `stty -g` system "stty -echo cbreak" yield ensure system "stty #{state}" end no_echo{gets} #==>"test\n" Using raw, it reads the "enter" key as a carriage return, and gets doesn't work as expected. cheers, Mark