[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29716: 25.1; Wrong brackground-mode on gnome-terminal
From: |
Noam Postavsky |
Subject: |
bug#29716: 25.1; Wrong brackground-mode on gnome-terminal |
Date: |
Sun, 31 Dec 2017 20:19:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) |
semente <semente@riseup.net> writes:
> Hey Eli and Noam, sorry for the delay in give you a feedback but the
> patch unfortunately didn't work for me.
Hmm, what does the evaluating the following produce? It should pop up a
buffer *bug29716* showing something like "background: rgb:ee00/e800/d500^[".
(defun bug29716--report-background-handler ()
(let ((str "")
chr)
;; The reply should be: \e ] 11 ; rgb: NUMBER1 / NUMBER2 / NUMBER3 \e
\\
(while (and (setq chr (read-event nil nil 2)) (not (equal chr ?\\)))
(setq str (concat str (string chr))))
(with-current-buffer (get-buffer-create "*bug29716*")
(insert (format "background: %s\n" str))
(display-buffer (current-buffer)))))
(xterm--query "\e]11;?\e\\"
'(("\e]11;" . bug29716--report-background-handler)))
If that works, is it possible you didn't test the patch correctly?
(e.g., maybe you applied the patch, but didn't recompile?)
If it doesn't work, I'm a bit confused, given what you reported in #13.