You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@elfham Oh, my mistake, I thought you were saying the bug was fixed in #335 not that it was introduced there. Sorry for the confusion, and thanks for shedding light on this problem!
I can confirm that this is still an issue in main for all ruby versions and that it's caused by #335. I use the following awkward monkeypatch in .irbrc to restore the ability to suspend irb with C-z:
Activity
junaruga commentedon Sep 7, 2022
I suppose that the "ZSH" is not the terminal emulator but the shell. The terminal emulator is like "terminator", "alacrity", "xterm" and etc. See https://en.wikipedia.org/wiki/List_of_terminal_emulators.
sandro commentedon Sep 7, 2022
@junaruga my mistake, I use iTerm2 but Terminal on Mac OS is also affected.
elfham commentedon Sep 8, 2022
It looks like that bug got in at #335.
sandro commentedon Sep 8, 2022
@elfham that was a year ago. Is IRB in Ruby 3.1.2 really that old?
I have the problem with this sample code running against reline master with Ruby 3.1.2:
Using
Ctrl-Zworks fine when using Ruby 3.0.1elfham commentedon Sep 10, 2022
Since this bug was introduced in #335, I believe that subsequent versions of Reline have had the problem.
(Reline 0.2.8~, Ruby 3.1.0~)
As I commented in #321 (comment) , I think commit #335 is inappropriate and should be reverted once.
sandro commentedon Sep 10, 2022
@elfham Oh, my mistake, I thought you were saying the bug was fixed in #335 not that it was introduced there. Sorry for the confusion, and thanks for shedding light on this problem!
casper commentedon Jan 15, 2023
Just installed Ruby 3.2.0 and ran into this same problem (Ubuntu Linux).
Strangely on Ruby 3.0, which also uses Reline, C-z works as expected.
brasic commentedon Apr 24, 2023
I can confirm that this is still an issue in main for all ruby versions and that it's caused by #335. I use the following awkward monkeypatch in
.irbrcto restore the ability to suspend irb with C-z:I've opened #535 to revert the prior PR, as I don't believe it does anything useful.