1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
emacs/lisp/term/tmux.el
Paul Eggert 365e01cc9f Update copyright year to 2020
Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
2020-01-01 00:59:52 +00:00

26 lines
998 B
EmacsLisp

;;; tmux.el --- terminal initialization for tmux -*- lexical-binding: t -*-
;; Copyright (C) 2017-2020 Free Software Foundation, Inc.
(require 'term/xterm)
(defcustom xterm-tmux-extra-capabilities '(modifyOtherKeys)
"Extra capabilities supported under \"tmux\".
Some features of tmux depend on the terminal emulator in which
it runs, which can change when the tmux session is moved to another tty."
:version "26.1"
:type xterm--extra-capabilities-type
:group 'xterm)
(defun terminal-init-tmux ()
"Terminal initialization function for tmux."
;; Treat a tmux 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-tmux-extra-capabilities))
(tty-run-terminal-initialization (selected-frame) "xterm")))
(provide 'term/tmux)
;; tmux.el ends here