(function-key-map): Map key symbols backspace, return... into ASCII chars.
authorRichard M. Stallman <rms@gnu.org>
Wed, 10 Mar 1993 06:31:49 +0000 (06:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 10 Mar 1993 06:31:49 +0000 (06:31 +0000)
Likewise their Meta versions.
Also add `ascii-character' properties.

lisp/term/x-win.el

index 53daad9..91a50f6 100644 (file)
@@ -440,6 +440,23 @@ This returns ARGS with the arguments that have been processed removed."
 (define-key function-key-map [clear] [11])
 (define-key function-key-map [return] [13])
 (define-key function-key-map [escape] [?\e])
+(define-key function-key-map [M-backspace] [?\M-\d])
+(define-key function-key-map [M-delete] [?\M-\d])
+(define-key function-key-map [M-tab] [?\M-\t])
+(define-key function-key-map [M-linefeed] [?\M-\n])
+(define-key function-key-map [M-clear] [?\M-\013])
+(define-key function-key-map [M-return] [?\M-\015])
+(define-key function-key-map [M-escape] [?\M-\e])
+
+;; Eventually these will tell read-char how to convert
+;; these special chars to ASCII.
+(put 'backspace 'ascii-character 127)
+(put 'delete 'ascii-character 127)
+(put 'tab 'ascii-character ?\t)
+(put 'linefeed 'ascii-character ?\n)
+(put 'clear 'ascii-character 12)
+(put 'return 'ascii-character 13)
+(put 'escape 'ascii-character ?\e)
 \f
 ;;;; Selections and cut buffers