[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master bd34a6c: Add term/tmux.el
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master bd34a6c: Add term/tmux.el |
Date: |
Sun, 1 Jan 2017 16:53:10 +0000 (UTC) |
branch: master
commit bd34a6c73f2651e9413b138cf98240faf559c790
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>
Add term/tmux.el
Since tmux version 2.1, new tmux terminfos are shipped due to oddities
with xterm and screen terminfos. This is simply a duplication of
term/screen.el with screen -> tmux.
* lisp/term/tmux.el: New file.
---
lisp/term/tmux.el | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/lisp/term/tmux.el b/lisp/term/tmux.el
new file mode 100644
index 0000000..60d18d7
--- /dev/null
+++ b/lisp/term/tmux.el
@@ -0,0 +1,25 @@
+;;; tmux.el --- terminal initialization for tmux -*- lexical-binding: t -*-
+;; Copyright (C) 2017 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master bd34a6c: Add term/tmux.el,
Mark Oteiza <=