https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-11-18T11:48:24ZRuby Issue Tracking SystemRuby master - Bug #5626: io/console: Cannot disable raw modehttps://redmine.ruby-lang.org/issues/5626?journal_id=222702011-11-18T11:48:24Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li></ul><p>Misty De Meo wrote:</p>
<blockquote>
<p>There doesn't seem to be a way to disable tty raw mode from within a Ruby script. The tty can be stuck in raw mode on script termination if IO.console.raw! is used, or if a raw command like IO.console.getch is in a thread that is terminated.</p>
</blockquote>
<p>Sure, it can be.<br>
I'll add IO#cooked and IO#cooked! methods.<br>
Thank you for pointing out.</p>
<blockquote>
<p>The documentation recommends following IO.console.raw! with #raw { ... } to restore the terminal, but this does not restore the terminal, either if IO.console.raw! is used or if a raw command is interrupted.</p>
</blockquote>
<p>It sounds like a bug.<br>
How can I reproduce it?</p> Ruby master - Bug #5626: io/console: Cannot disable raw modehttps://redmine.ruby-lang.org/issues/5626?journal_id=243312012-03-06T22:40:22Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul>