https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112020-01-15T15:23:40ZRuby Issue Tracking SystemRuby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=838822020-01-15T15:23:40Zpackerbacker89 (Josh Johnson)
<ul></ul><p>Note: none of this behavior occurs in Ruby 2.6.5. This is related exclusively to 2.7.0.</p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=839272020-01-16T11:42:58Zaycabta (aycabta .)aycabta@gmail.com
<ul></ul><p>What OS and virtual console software (Terminal.app, command prompt, xterm...) are you using?</p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=839592020-01-17T20:21:10Zpackerbacker89 (Josh Johnson)
<ul></ul><p>I've found the issue using RedHat 6.10 and reproduced the behavior in CentOS 6.</p>
<p>I was using GNOME Terminal (v 2.31.3) when I discovered the issue.<br>
I checked, and it is working <em>somewhat</em> correctly in xterm and konsole. That is, it does not crash upon hitting 'Home' or 'End'. The odd characters still appear upon hitting 'Insert', 'Page Up', and 'Page Down'.</p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=839622020-01-18T02:04:32Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/83962/diff?detail_id=56213">diff</a>)</li></ul> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=839832020-01-21T08:23:09Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul></ul><p>It works perfectly for me. I'm using GNOME Terminal (<code>GNOME Terminal 3.34.2 using VTE 0.58.2 +BIDI +GNUTLS</code>) in Ubuntu 19.10.</p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=840292020-01-22T20:05:42Zjaruga (Jun Aruga)
<ul></ul><p>Hi, packerbacker89.<br>
Here are the centos 6 containers, tag <code>6</code> and <code>6.X</code>.<br>
<a href="https://hub.docker.com/_/centos/" class="external">https://hub.docker.com/_/centos/</a></p>
<p>If you can reproduce the error on the containers, and you can provide the Dockerfile to reproduce it, it might be helpful.</p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=840332020-01-23T09:28:26Zaycabta (aycabta .)aycabta@gmail.com
<ul></ul><p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/32819">@packerbacker89 (Josh Johnson)</a><br>
Could you show a full result of <code>gnome-terminal --version</code>?</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/11018">@jaruga (Jun Aruga)</a><br>
I think the CUI access via Docker is sometimes not good. It's not perfect compatibility.</p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=840492020-01-24T19:58:14Zpackerbacker89 (Josh Johnson)
<ul></ul><p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/11389">@aycabta (aycabta .)</a><br>
Here is the gnome-terminal version: <code>GNOME Terminal 2.31.3</code></p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/11018">@jaruga (Jun Aruga)</a><br>
I'll try to work on reproducing it via the container when I have some time.</p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=841042020-01-29T06:12:59Zaycabta (aycabta .)aycabta@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="[ruby/reline] Support GNOME style Home/End key sequences [Bug #16510] https://github.com/ruby/re..." href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/5d124a3b68982e779946804b5b9578c403c6bdf2">git|5d124a3b68982e779946804b5b9578c403c6bdf2</a>.</p>
<hr>
<p>[ruby/reline] Support GNOME style Home/End key sequences [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: irb crashes when hitting 'Home' or 'End' keys (Closed)" href="https://bugs.ruby-lang.org/issues/16510">#16510</a>]</p>
<p><a href="https://github.com/ruby/reline/commit/788f0df845" class="external">https://github.com/ruby/reline/commit/788f0df845</a></p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=841052020-01-29T06:15:16Zaycabta (aycabta .)aycabta@gmail.com
<ul></ul><p>This bug was based on unsupported key sequences environment. This was a good chance to survey it for me. Thank you.</p>
<p>ref. <a href="http://blog.bachi.net/?p=2082" class="external">http://blog.bachi.net/?p=2082</a></p> Ruby master - Bug #16510: irb crashes when hitting 'Home' or 'End' keyshttps://bugs.ruby-lang.org/issues/16510?journal_id=863702020-06-28T19:07:06Zyvo@yvo.net (Yvo van Beek)
<ul></ul><p>I noticed this issue when I connect to my Ubuntu 20.04 server and I press Home or End in the Rails console. This is a new issue introduced with Ruby 2.7.0.</p>
<p>I was using the macOS terminal and I had the Home key mapped to <code>\033[H</code> and the End key mapped to <code>\033[F</code>. Those key commands seem to crash the IRB (UndefinedConversionError).</p>
<p>Now that I'm using macOS Catalina with ZSH, I can use <code>\001</code> for Home and <code>\005</code> for End. That provides a workaround for this issue.<br>
See <a href="https://apple.stackexchange.com/a/271648/192935" class="external">https://apple.stackexchange.com/a/271648/192935</a> for more information on the key mappings.</p>