Terminfo

SYNOPSYS

My beloved mail client mutt throws a ‘key not bound’ error at me when hit Backspace to scroll my message up a line.

UPDATES

  • 2013-11-13
    • I forgot to precise that I’m exclusively using terminology, and since this patch, that trick is no longer needed.

RELATED

PROCEDURE

what we want (sed or grep fun)
1
2
3
4
$ infocmp | grep -oE  'kbs=[^,]+'
kbs=\177
$ infocmp | sed -ne 's/.*\(kdch1=[^,]\+\).*/\1/p'
kdch1=\E[3~
how to fix
1
2
infocmp | sed 's/kbs=^H/kbs=\\177/' | sed 's/kdch1=\\177/kdch1=\\E[3~/' > terminfo
tic -x terminfo