2021-04-19 12:21:01 +02:00
|
|
|
;;; linux.el -*- lexical-binding:t -*-
|
|
|
|
|
|
|
|
;; The Linux console handles Latin-1 by default.
|
1997-07-04 20:56:42 +00:00
|
|
|
|
2005-07-27 18:02:08 +00:00
|
|
|
(defun terminal-init-linux ()
|
2008-06-07 02:42:21 +00:00
|
|
|
"Terminal initialization function for linux."
|
2005-07-27 18:02:08 +00:00
|
|
|
(unless (terminal-coding-system)
|
|
|
|
(set-terminal-coding-system 'iso-latin-1))
|
1997-11-15 20:52:06 +00:00
|
|
|
|
2005-07-27 18:02:08 +00:00
|
|
|
;; It can't really display underlines.
|
|
|
|
(tty-no-underline)
|
2005-06-17 14:13:47 +00:00
|
|
|
|
2021-08-16 14:49:19 +02:00
|
|
|
;; Compositions confuse cursor movement.
|
2021-08-18 16:24:40 +02:00
|
|
|
(setq-default auto-composition-mode "linux")
|
2021-08-16 14:49:19 +02:00
|
|
|
|
2022-09-03 22:58:44 -04:00
|
|
|
;; Don't translate ESC TAB to backtab as directed by ncurses-6.3.
|
2022-05-08 11:39:45 +00:00
|
|
|
(define-key input-decode-map "\e\t" nil)
|
|
|
|
|
2005-07-27 18:02:08 +00:00
|
|
|
;; Make Latin-1 input characters work, too.
|
2022-09-03 22:58:44 -04:00
|
|
|
;; Meta will continue to work, because the kernel turns that into Escape.
|
1997-11-15 20:52:06 +00:00
|
|
|
|
2005-12-23 03:00:55 +00:00
|
|
|
;; The arg only matters in that it is not t or nil.
|
|
|
|
(set-input-meta-mode 'iso-latin-1))
|
2001-07-15 19:53:53 +00:00
|
|
|
|
Provide 'term/name in lisp/term files.
* lisp/term/AT386.el, lisp/term/bobcat.el, lisp/term/cygwin.el:
* lisp/term/internal.el, lisp/term/iris-ansi.el, lisp/term/linux.el:
* lisp/term/lk201.el, lisp/term/news.el, lisp/term/ns-win.el:
* lisp/term/pc-win.el, lisp/term/rxvt.el, lisp/term/screen.el:
* lisp/term/sun.el, lisp/term/tty-colors.el, lisp/term/tvi970.el:
* lisp/term/vt100.el, lisp/term/vt200.el, lisp/term/w32-win.el:
* lisp/term/w32console.el, lisp/term/wyse50.el, lisp/term/x-win.el:
For consistency, provide 'term/name in all files that don't already.
2016-02-15 21:59:40 -08:00
|
|
|
(provide 'term/linux)
|
|
|
|
|
2001-07-15 19:53:53 +00:00
|
|
|
;;; linux.el ends here
|