(apply #'set-input-mode
(nconc (list (nth 0 im) (nth 1 im) 0) (nthcdr 3 im)))))
+;; Some unpleasant terminal hackery. Screen prefixes the current terminal
+;; name with `screen.', and Emacs is too dim to split the name at the `.'.
+;; Help it out.
+
+(defun terminal-init-screen.xterm ()
+ (tty-run-terminal-initialization (selected-frame) "screen"))
+(defun terminal-init-screen.putty ()
+ (tty-run-terminal-initialization (selected-frame) "screen"))
+
;; Don't disable any commands.
(mapatoms #'(lambda (sym) (put sym 'disabled nil)))