Fix alt+bspace since alt+bspace is equal to alt+ctrl+h.
In my terminal, they are not the same.
BSPACE: "\u007F"
ALT-BSPACE: "\e\u007F"
CTRL-H: "\b"
CTRL-ALT-H "\e\b"
Wired, @junegunn do you use xxd command to find it. And according to https://www.physics.udel.edu/~watson/scen103/ascii.html bspace should equal to ctrl+h as well.

Here is my xxd output when type alt+bspace
xxd
^[^H^[^H^[^H^[^H^[^H^[^H^[^H^[^H^[^H^[^H^[^H^[^H^[^H^[^H
00000000: 1b08 1b08 1b08 1b08 1b08 1b08 1b08 1b08 ................
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'io/console'
loop do
chars = $stdin.getch + (begin
$stdin.read_nonblock(1024)
rescue StandardError
''
end)
break if [3, 4, 26].map(&:chr).include?(chars)
p chars
end
What I got
> Alt+Backspace
"\e\b"
"\e\b"
"\e\b"
> Ctrl+H or Backspace
"\u007F"
"\u007F"
"\u007F"
"\u007F"
"\u007F"
This is your backspace key, right?
Sure 🤣
Related: https://github.com/microsoft/terminal/issues/5957#issuecomment-630659076
gg, but by right alt+ctrl+h and alt+bspace should have the same effect according to my trial.