bobcat.el 321 B

123456789101112
  1. ;;; HP terminals usually encourage using ^H as the rubout character
  2. (let ((the-table (make-string 128 0)))
  3. (let ((i 0))
  4. (while (< i 128)
  5. (aset the-table i i)
  6. (setq i (1+ i))))
  7. ;; Swap ^H and DEL
  8. (aset the-table ?\177 ?\^h)
  9. (aset the-table ?\^h ?\177)
  10. (setq keyboard-translate-table the-table))