[MacRuby] #1255: HighLine Gem - stty: stdin isn't a terminal

MacRuby ruby-noreply at macosforge.org
Mon Nov 7 16:33:02 PST 2011


#1255: HighLine Gem - stty: stdin isn't a terminal
-------------------------------------+--------------------------------------
 Reporter:  umairsiddique@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:  MacRuby 0.11         
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------

Comment(by lastobelus@…):

 This is probably a better patch:


 {{{
 class HighLine
   def raw_no_echo_mode
     @state = `stty -g < /dev/tty`
     system "stty raw -echo -icanon isig"
   end
 end
 }}}

 Unfortunately however, another bug remains with macruby / highline, which
 is when NOT using character mode (or turning off echo, which uses
 character mode behind the scenes) Highline#ask and Highline#choose are
 losing the first character of input. I haven't figured out what exactly is
 happening there; the relevant highline code is a little convoluted and I
 haven't needed to fix it yet.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1255#comment:3>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list