From: Tudor Lupei Date: 2010-04-01T03:47:41+09:00 Subject: trap(:INT); system(); STDIN.gets(); ^C Considering a trivial example: trap :INT do puts puts 'Bye' exit end # system 'date' print 'Say something: ' STDOUT.flush puts "You said: #{STDIN.gets}" When prompted to say something, hitting Ctrl+C will call trap(:INT) block. However, after uncommenting line 7, Ctrl+C won't cause a call to trap(:INT) block unless I send a newline or EOF. Can anyone shed some light on this one? Platform: linux; ruby 1.8.7 Thanks -- Posted via http://www.ruby-forum.com/.