| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | export TERMINFO=/usr/share/terminfo |
| 4 | |
| 5 | echo "Checking if terminfo entries have expected backspace key definitions ..." |
| 6 | for term in Eterm linux rxvt screen tmux xterm ; do |
| 7 | infocmp $term | grep -F -q 'kbs=^?' |
| 8 | done |
| 9 | |
| 10 | echo "Checking if terminfo entries have expected delete key definitions ..." |
| 11 | for term in Eterm linux rxvt screen tmux vt220 xterm ; do |
| 12 | infocmp $term | grep -F -q 'kdch1=\E[3~' |
| 13 | done |