summaryrefslogtreecommitdiff
path: root/lisp/term
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-06-13 11:06:29 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2014-06-13 11:06:29 -0400
commit40be983bc68c95ad63f1135da3a82aec1aa32e2a (patch)
treed3750db7120cd4f809f4bc8914beb4832988887d /lisp/term
parent4346235f61172f2c55dfbbd2b830233e005987e7 (diff)
* lisp/term/xterm.el (xterm--version-handler): Work around for OSX
Terminal.app. Fixes: debbugs:17607
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/xterm.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 52487f3bded..5d4112b24fd 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -509,6 +509,10 @@ The relevant features are:
;; Gnome terminal 3.6.1 reports 1;3406;0
;; Gnome terminal 2.32.1 reports 1;2802;0
(setq version 200))
+ (when (equal (match-string 1 str) "83")
+ ;; OSX's Terminal.app (version 2.3 (309), which returns 83;40003;0)
+ ;; seems to also lack support for some of these (bug#17607).
+ (setq version 240))
;; If version is 242 or higher, assume the xterm supports
;; reporting the background color (TODO: maybe earlier
;; versions do too...)