47726
|
1 ;; -*- no-byte-compile: t -*-
|
18616
|
2 ;; The Linux console handles Latin-1 by default.
|
|
3
|
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
4 (defun terminal-init-linux ()
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
5 "Terminal initialization function for linux."
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
6 (unless (terminal-coding-system)
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
7 (set-terminal-coding-system 'iso-latin-1))
|
20260
|
8
|
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
9 ;; It can't really display underlines.
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
10 (tty-no-underline)
|
63552
|
11
|
81005
|
12 (condition-case nil (t-mouse-mode 1)
|
|
13 (error nil))
|
80999
|
14
|
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
15 ;; Make Latin-1 input characters work, too.
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
16 ;; Meta will continue to work, because the kernel
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
17 ;; turns that into Escape.
|
20260
|
18
|
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
19 (let ((value (current-input-mode)))
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
20 ;; The third arg only matters in that it is not t or nil.
|
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
diff
changeset
|
21 (set-input-mode (nth 0 value) (nth 1 value) 'iso-latin-1 (nth 3 value))))
|
38414
|
22
|
52401
|
23 ;;; arch-tag: 5d0c4f63-739b-4862-abf3-041fe42adb8f
|
38414
|
24 ;;; linux.el ends here
|