File: linux.el

package info (click to toggle)
emacs24 24.4%2B1-5
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 117,404 kB
  • sloc: lisp: 1,073,087; ansic: 272,934; objc: 15,085; makefile: 5,480; sh: 2,257; perl: 1,319; xml: 1,110; pascal: 1,011; cs: 770; cpp: 528; awk: 477; ruby: 290; java: 27
file content (22 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; The Linux console handles Latin-1 by default.

(declare-function gpm-mouse-enable "t-mouse" ())

(defun terminal-init-linux ()
  "Terminal initialization function for linux."
  (unless (terminal-coding-system)
    (set-terminal-coding-system 'iso-latin-1))

  ;; It can't really display underlines.
  (tty-no-underline)

  (ignore-errors (when gpm-mouse-mode (require 't-mouse) (gpm-mouse-enable)))

  ;; Make Latin-1 input characters work, too.
  ;; Meta will continue to work, because the kernel
  ;; turns that into Escape.

  ;; The arg only matters in that it is not t or nil.
  (set-input-meta-mode 'iso-latin-1))

;;; linux.el ends here