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