GNU bug report logs - #13839
xterm/mintty control sequences support when formatOtherKeys = 1

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Thu, 28 Feb 2013 15:45:03 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 13839 <at> debbugs.gnu.org (full text, mbox):

From: Ren Victor <victorhge <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 13839 <13839 <at> debbugs.gnu.org>
Subject: Re: bug#13839: xterm/mintty control sequences support when
	formatOtherKeys = 1
Date: Tue, 12 Mar 2013 09:04:48 +0100
On Mon, Mar 11, 2013 at 7:25 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>
> >> Can you confirm that the patch below works for your formatOtherKeys=1 case?
> > There is no problem in the patch itself.
>
> Thanks, installed.
>
> > 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".
>
> Hmm...
>
> > The default value is 41 (in xterm latest version manual).
>
> It seems that indeed the regexp could need revision, but I'd first like
> to understand what's going on.  The test we want to make is "make sure
> this terminal understands this and that feature".  So the "P v" field
> (the version number) only makes sense if the terminal is actually an
> xterm (or uses a version numbering that implies the same featureset).
> In my xterms the "P p" value is always 0 and not 41 as you seem to suggest.

I checked the  changelog of xterm. There is one item in Patch #280:

    change default emulation level to VT420 (discussion with Ailin Nemui).

http://invisible-island.net/xterm/xterm.log.html#xterm_280

Anyway, "Pp" value can be configured to several values.
Emacs get the terminal type from environment variable "TERM"  I don't
think "Pp" value is relevant.

BR
Victor Ren
>
> More specifically, I'm concerned that by accepting any "P p" number, we
> might end up trying to use a feature that's not supported by the
> underlying terminal emulator because it happens to have version numbers
> that are higher than those of "the usual xterm".
>
>
>         Stefan




This bug report was last modified 10 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.