Avoir le backspace sur un clavier mac dans un term Linux
Quelques lignes simples pour obtenir le backspace dans un Term MacOs 🙂
- Log in to the affected Linux box.
- echo $TERM to confirm the terminfo setting. (Mac OS X Terminal should be using xterm-color.)
- infocmp >xterm-color
- Edit xterm-color, find kbs and make sure it reads kbs=\177, and find kdch1 and make sure it reads kdch1=\E[3~. Save.
- mkdir -p ~/.terminfo/x
- Temporarily set the TERMINFO environment variable to /.terminfo
- Test-compile the new terminfo file: tic xterm-color If successful, ~/.terminfo/x/xterm-color will be the compiled terminfo file.
- unset TERMINFO
- If desired, back up the original compiled terminfo file. Look for it as /etc/terminfo/x/xterm-color or /usr/lib/terminfo/x/xterm-color.
- Run tic xterm-color again as root (using su or sudo) to compile and install the new version in the official location.