2014-04-17 00:54:23 -07:00
|
|
|
;;; screen.el --- terminal initialization for screen and tmux -*- lexical-binding: t -*-
|
2019-01-01 00:59:58 +00:00
|
|
|
;; Copyright (C) 1995, 2001-2019 Free Software Foundation, Inc.
|
2012-05-02 13:38:01 +02:00
|
|
|
|
2015-05-03 22:24:20 -04:00
|
|
|
(require 'term/xterm)
|
|
|
|
|
|
|
|
(defcustom xterm-screen-extra-capabilities '(modifyOtherKeys)
|
|
|
|
"Extra capabilities supported under \"screen\".
|
|
|
|
Some features of screen depend on the terminal emulator in which
|
|
|
|
it runs, which can change when the screen session is moved to another tty."
|
2016-01-12 20:06:49 -05:00
|
|
|
:version "25.1"
|
2015-05-03 22:24:20 -04:00
|
|
|
:type xterm--extra-capabilities-type
|
|
|
|
:group 'xterm)
|
|
|
|
|
2011-02-27 16:26:22 -05:00
|
|
|
(defun terminal-init-screen ()
|
|
|
|
"Terminal initialization function for screen."
|
2015-05-03 22:24:20 -04:00
|
|
|
;; Treat a screen terminal similar to an xterm, but don't use
|
|
|
|
;; xterm-extra-capabilities's `check' setting since that doesn't seem
|
|
|
|
;; to work so well (it depends too much on the surrounding terminal
|
|
|
|
;; emulator, which can change during the session, bug#20356).
|
|
|
|
(let ((xterm-extra-capabilities xterm-screen-extra-capabilities))
|
|
|
|
(tty-run-terminal-initialization (selected-frame) "xterm")))
|
2011-02-27 16:26:22 -05: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/screen)
|
|
|
|
|
2011-02-27 16:26:22 -05:00
|
|
|
;; screen.el ends here
|