Project

General

Profile

Actions

Bug #19791

closed

Debugger does not handle delete key correctly

Added by stuartb (Stuart Bury) about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux-musl]
[ruby-core:114323]

Description

When entering the debugger using binding.debugger or the rdbg command, pressing the delete key on the keyboard to delete characters at the REPL merely prints "^[[3~" to the console, and does not actually delete anything. This is very inconvenient. Can this be fixed somehow? I really like the new debugger, but my swearing like a sailor every time I hit "delete" is starting to really annoy my wife...

It is worth noting that if I run the pry command and then, within pry, call binding.debugger, the delete key operates correctly.

I believe the issue is related in some way to readline support, or the lack thereof – but my Ruby installation was compiled with readline support. I've tried everything I can think of, and spent some time on Google trying to solve it, but the problem remains. It happens in Alpine 3.18 and also in Debian 12.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0