unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ren Victor <victorhge@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 13839@debbugs.gnu.org
Subject: bug#13839: xterm/mintty control sequences support when formatOtherKeys = 1
Date: Fri, 1 Mar 2013 23:15:50 +0800	[thread overview]
Message-ID: <CAMks0JFXN+gyz-Uey8a34n62vbQYVObrhHKS_Nfdnb8=zfKfHA@mail.gmail.com> (raw)
In-Reply-To: <jwv621cjtb4.fsf-monnier+emacs@gnu.org>

On Fri, Mar 1, 2013 at 12:31 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>
> >> Y see, that looks fine.  If you can prepare a patch for it, I'd
> >> be very happy to install it.  Or can we simply take all the
> >> "\e[27;NN,MM~" and add a corresponding "\e[MM;NNu"?  If so, I can
> >> write the patch myself.
> > Yes, I think so.  Maybe this is the better way than checking terminal
> > capacities and then deciding to enable which format.
>
> Can you confirm that the patch below works for your formatOtherKeys=1 case?

There is no problem in the patch itself.  But the xterm extra capability support
does not work automatically due to another bug in lisp/term/xterm.el -
the regexp in line 532 ">0;\\([0-9]+\\);0".  It should be
">[0-9]+;\\([0-9]+\\);0".

The number before the first semi-colon could be many different values, according
to http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
section  "Send Device Attributes (Secondary DA)":
  P p = 0 → ‘‘VT100’’.
  P p = 1 → ‘‘VT220’’.
  P p = 2 → ‘‘VT240’’.
  P p = 1 8 → ‘‘VT330’’.
  P p = 1 9 → ‘‘VT340’’.
  P p = 2 4 → ‘‘VT320’’.
  P p = 4 1 → ‘‘VT420’’.
  P p = 6 1 → ‘‘VT510’’.
  P p = 6 4 → ‘‘VT520’’.
  P p = 6 5 → ‘‘VT525’’.
The default value is 41 (in xterm latest version manual).

Would you fix this bug by the way?

>         Stefan

BR/
Victor Ren

>
> === modified file 'lisp/term/xterm.el'
> --- lisp/term/xterm.el  2013-02-12 17:36:54 +0000
> +++ lisp/term/xterm.el  2013-02-28 16:30:30 +0000
> @@ -251,120 +251,124 @@
>
>      ;; These keys are available in xterm starting from version 216
>      ;; if the modifyOtherKeys resource is set to 1.
> -
> -    (define-key map "\e[27;5;9~"   [C-tab])





  reply	other threads:[~2013-03-01 15:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28 15:42 bug#13839: xterm/mintty control sequences support when formatOtherKeys = 1 Stefan Monnier
2013-02-28 16:31 ` Stefan Monnier
2013-03-01 15:15   ` Ren Victor [this message]
2013-03-11 18:25     ` Stefan Monnier
2013-03-12  8:04       ` Ren Victor
2014-07-08 18:54         ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMks0JFXN+gyz-Uey8a34n62vbQYVObrhHKS_Nfdnb8=zfKfHA@mail.gmail.com' \
    --to=victorhge@gmail.com \
    --cc=13839@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).