#3962: Backspace Key doesn't work in pager and Tmux
-----------------------------+-----------------------
  Reporter:  ManDay          |      Owner:  mutt-dev
      Type:  defect          |     Status:  new
  Priority:  major           |  Milestone:
 Component:  user interface  |    Version:
Resolution:                  |   Keywords:  BackSpace
-----------------------------+-----------------------

Comment (by kevin8t8):

 > Maybe there is another, more reliable way with ncurses to bind to
 > backspace and delete?

 Perhaps, but I don't know of any.  We're using the most straightfoward
 ncurses function: getch().  We count on ncurses to look at the
 appropriate terminfo entries and return the correct code to mutt.

 You didn't mention whether the "bind" command above fixed the problem,
 but I believe getch() is likely returing the delete keypad code when you
 press Backspace.

 Out of curiosity, what is the output if you run:
 {{{
 infocmp screen-256color
 stty -a
 }}}

 and what is output if you enter:
 {{{
 stty raw; sleep 10s; stty -raw
 }}}
 and you hit backspace while it's sleeping.

 > In fact, from a simple grep -i backspace I don't see any place where
 > the keybindings for a line entry would be explicitly established
 > (indeed, I'm surprised that you'd have to).

 ncmpcpp is using readline.  Looking at the code, it does appear to be
 delegating to readline for the search function prompt.  It's likely
 readline has some sort of hack working around the issue.

 I am not convinced Mutt should have code to work around broken configs.
 We're likely to break something else and end up with another ticket with
 the same request to "rely on ncurses to figure out the correct
 sequence".

 So far I've not been able to duplicate the issue, so I can't test
 myself.  The "jump to parent directory" and "replay song" actions appear
 to be bound to backspace.  Are those working for you?

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3962#comment:4>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to