command line – How to make the Delete key work in micro (text editor) when this is running under st terminal (from bspwm)?


When I press the Delete key, this sequence appears: “(P”.
I have tried changing the TERM and COLORTERM variables, as
well as putting “set enable-keypad on” on /etc/inputrc.
But none of these worked. St terminal has st-256color in
the TERM environment variable opposed to xterm-256color
which is what several others terminals do.