+2001-11-01 Gerd Moellmann <gerd@gnu.org>
+
+ * startup.el (command-line): If the terminal Emacs is running on
+ has erase char set to ^H, use the Backspace key for deleting
+ backward, and the Delete key for deleting forward.
+
2001-10-31 Jason Rumney <jasonr@gnu.org>
* international/mule-cmds.el (locale-language-names): Add chs and
(when (or (memq system-type '(ms-dos windows-nt))
(and (memq window-system '(x))
(fboundp 'x-backspace-delete-keys-p)
- (x-backspace-delete-keys-p)))
+ (x-backspace-delete-keys-p))
+ ;; If the terminal Emacs is running on has erase char
+ ;; set to ^H, use the Backspace key for deleting
+ ;; backward and, and the Delete key for deleting forward.
+ (and (null window-system)
+ (eq tty-erase-char 8)))
(setq-default normal-erase-is-backspace t)
(normal-erase-is-backspace-mode 1)))