From: han.holl@... (Han Holl) Date: 2003-03-08T00:36:05+09:00 Subject: Re: pty & signals with wrapped shell Doug Beaver wrote in message news:<20030306222419.A84092@beaver.net>... > hello, [ cut ] > input, output, pid = PTY.spawn(shell) > puts "input, output, pid = #{input}, #{output}, #{pid}" > Thread.new do > while true > output.print STDIN.getc.chr > output.flush > end > end > In a recent thread on pty matz asserted that you must do: PTY.spawn(shell) do |input, output, pid| # rest of handling here end I don't know if this helps you with your problem or not. I find that I also must wrap in 'PTY.protect_signal do ... end' or I get the dreaded 'child_changed' exception, but maybe that's not necessary for your application. Cheers, Han Holl