From: zn@... Date: 2017-03-06T15:54:48+00:00 Subject: [ruby-core:79937] [Ruby trunk Bug#13270] IRB hangs when printing "\e]" Issue #13270 has been updated by Kazuhiro NISHIYAMA. I can reproduce `print "\e]"` and Ctrl+C, nothing happens. But I can't reproduce using `puts "\e["`. And I can't reproduce Ctrl+D `prints "30m"`. Ctrl+D causes simply exited. I think iTerm eats output from "\e]" (OSC) to "\a" (BEL) (or "\e" or something else). `pry` outputs some `"\e"`s after evaluation, then it seems to be without hang. I typed `print "\e]"`, Enter, Ctrl+C, `puts "\a"` (can't see), Enter. Then it outputs `=> nil` and prompt. ``` % rbenv exec irb -r irb/completion --simple-prompt >> print "\e]" => nil >> ``` ---------------------------------------- Bug #13270: IRB hangs when printing "\e]" https://bugs.ruby-lang.org/issues/13270#change-63363 * Author: Dorian M * Status: Feedback * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Steps to reproduce: - `irb` - `print "\e]"` - Or: `puts "\e["` - try CMD+C, nothing happens - try CMD+D, prints "30m" Expected behavior: - just prints "30m" (that's what `pry` does) Ruby versions tried: - ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16] - ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16] -- https://bugs.ruby-lang.org/ Unsubscribe: