I am using Mac OS and since latest rails version the delete key does not work anymore.
❯ rails -v
Rails 7.0.4
❯ ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
When I hit delete
instead of removing the char and the current cursor position it inserts ^[[3~
.
I could not find out how to fix this. The previous rails version did not have this problem.
Ok, this is a bug in irb (or Reline rather) that is not yet fixed. Even though 2 PRs exist.
https://github.com/ruby/reline/issues/435
To monkeypatch add this snippet to your
.irbrc