(xterm--init): Fix probem in async mode (bug#80163)

In async mode, the workaround for the old Terminal.app collides
with the binding we install for the primary DA.  Just drop it.

* lisp/term/xterm.el (xterm--init): Remove workaround for very old
macOS `Terminal.app`.
This commit is contained in:
Jared Finder 2026-01-20 22:46:31 -05:00 committed by Stefan Monnier
parent 4150c2e22e
commit 75dd442058

View file

@ -983,11 +983,7 @@ We run the first FUNCTION whose STRING matches the input events."
;; Try to find out the type of terminal by sending a "Secondary
;; Device Attributes (DA)" query.
(xterm--query "\e[>0c"
;; Some terminals (like macOS's Terminal.app) respond to
;; this query as if it were a "Primary Device Attributes"
;; query instead, so we should handle that too.
'(("\e[?" . xterm--version-handler)
("\e[>" . xterm--version-handler)))
'(("\e[>" . xterm--version-handler)))
;; Check primary DA for OSC-52 support
(xterm--query "\e[c"
'(("\e[?" . xterm--primary-da-handler))))