From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 14615@debbugs.gnu.org
Subject: bug#14615: xterm--query results in slow -nw startup on some terminals
Date: Fri, 14 Jun 2013 03:38:41 -0400 [thread overview]
Message-ID: <s5ip1h5egu.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <3oa9mtwk07.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 13 Jun 2013 21:36:56 -0400")
echo -e "\e[>0c"
returns
^[[?1;2c for aterm (the Debian one runs fine for me and is also slow)
^[[>41;293;0c for xterm
^[[>1;2802;0c for xfce4-terminal
Here's the values of
i (car handler) evt unread-command-events
followed by
i (length (car handler)
for xterm / xfce4-terminal:
0 "^[[?" 27 nil
1 "^[[?" 91 nil
2 "^[[?" 62 nil
2 3
0 "^[[>" 27 (91 62)
1 "^[[>" 91 (62)
2 "^[[>" 62 nil
3 3
and for aterm
0 "^[[?" 27 nil
1 "^[[?" 91 nil
2 "^[[?" 63 nil
3 3
0 "^[[>" nil nil
0 3
So the xterm case has stuff pushed into unread-command-events by the
first handler, which is then there for the second handler to read.
aterm does not, so the second handler has nothing to read.
So I can make aterm fast, and xterm slow, by swapping the order of the
("\e[?" . xterm--version-handler)
("\e[>" . xterm--version-handler)
next prev parent reply other threads:[~2013-06-14 7:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 23:36 bug#14615: xterm--query results in slow -nw startup on some terminals Glenn Morris
2013-06-14 0:26 ` Stefan Monnier
2013-06-14 0:34 ` Glenn Morris
2013-06-14 1:17 ` Stefan Monnier
2013-06-14 1:36 ` Glenn Morris
2013-06-14 7:38 ` Glenn Morris [this message]
2013-06-14 16:20 ` Glenn Morris
2013-06-14 18:08 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5ip1h5egu.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=14615@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.