#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/>