Learn from a particle physicist

Aug 31, 2016 learning terminal

Very often the backspace key in your terminal prints strange characters instead of deleting a letter on the left. The historic reason is explained in this article. Basically, you need to dump the current terminfo to stdout, fix some keys using sed and save the result into a text file:

$ infocmp | sed 's/kbs=^H/kbs=\\177/'> ti.src

Compile the src file and save it to ~/.terminfo:

$ tic ti.src