Commit 9f5787ae authored by Karl Heuer's avatar Karl Heuer
Browse files

(te-pass-through): Don't presume internal bit layout of non-ASCII keys.

parent da16e648
......@@ -435,7 +435,7 @@ lets you type a terminal emulator command."
(setq last-input-char (get last-input-char 'ascii-character)))
;; Convert meta characters to 8-bit form for transmission.
(if (and (integerp last-input-char)
(not (zerop (logand last-input-char (lsh 1 23)))))
(not (zerop (logand last-input-char ?\M-\^@))))
(setq last-input-char (+ 128 (logand last-input-char 127))))
;; Now ignore all but actual characters.
;; (It ought to be possible to send through function
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment