Merge branch 'master' into comment-cache
[emacs.git] / lisp / term / linux.el
blob70730dc5844631d9ad4d64039517d6fdf39fa724
1 ;; The Linux console handles Latin-1 by default.
3 (declare-function gpm-mouse-enable "t-mouse" ())
5 (defun terminal-init-linux ()
6 "Terminal initialization function for linux."
7 (unless (terminal-coding-system)
8 (set-terminal-coding-system 'iso-latin-1))
10 ;; It can't really display underlines.
11 (tty-no-underline)
13 (ignore-errors (when gpm-mouse-mode (require 't-mouse) (gpm-mouse-enable)))
15 ;; Make Latin-1 input characters work, too.
16 ;; Meta will continue to work, because the kernel
17 ;; turns that into Escape.
19 ;; The arg only matters in that it is not t or nil.
20 (set-input-meta-mode 'iso-latin-1))
22 (provide 'term/linux)
24 ;;; linux.el ends here