view shared/hackbs.el @ 60:77aefd805030

consume pwd on encryption
author Henry S Thompson <ht@inf.ed.ac.uk>
date Fri, 05 Apr 2024 09:11:09 +0100
parents 107d592c5f4a
children
line wrap: on
line source

;;; Last edited: Tue Sep  9 10:22:22 2003
;;; Hack bs vs ctrl-h

(provide 'hackbs)
(defun hack-ctlh (prompt)
  (if (eq (device-or-frame-type (frame-device)) 'tty)
    [(backspace)]
    [(control h)]))

(define-key key-translation-map [(control h)] 'hack-ctlh)