delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/26/17:10:12

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=S00cE13wz6SsUD8Z3UM2p3oWBuOZtqHU03nJwco9OUk
oVeWjhDrZZgE4Mz0VnL+kz7usR7Zu/J3drbUAUMcypvI8j9ou8gSRfeNd8YOtlQo
pNTXyMrDnnbFH+CAZPXBOdAEj3mZkJtu+XH1xjZdrNCzmiacAYjAzmcY8V6styZw
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=arPQbtcBgmLOW5O+fFiOLB/pH48=; b=C4hq1WUA5vHn72lE+
t+OYaM+1XIBhG1idtcYc2qzoynf4gor8QS42Ue8qap6shl9zUmPGKoSKZFPV7EGf
CKZQJ9+JIE/xQKO5hn4ddL1dJG5P4YKLGDqqaXlWgOresDXyPPaNlDPF2ImmHeYi
rdtm6sV1XOOgtjFgzQLb8PO3SA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.8 required=5.0 tests=AWL,BAYES_40,HELO_MISC_IP,KHOP_DYNAMIC,KHOP_THREADED,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SEMBLACK,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.3.2
X-HELO: moutng.kundenserver.de
Message-ID: <521BC420.9030906@towo.net>
Date: Mon, 26 Aug 2013 23:09:52 +0200
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Disabling focus reporting in mintty
References: <CAHNuP_YEU7X-Jck5GAwZY5XdUN_QTwQoFou6=JscKzuVjyxtew AT mail DOT gmail DOT com>
In-Reply-To: <CAHNuP_YEU7X-Jck5GAwZY5XdUN_QTwQoFou6=JscKzuVjyxtew@mail.gmail.com>
X-TagToolbar-Keys: D20130826230952091

Am 26.08.2013 22:54, schrieb John Koelndorfer:
> I seem to have run into some trouble with focus reporting in mintty
> 1.1.2 and tmux 1.8 running on a remote Arch Linux host.  tmux does not
> seem to catch the focus reporting control characters properly and will
> allow the "^[[O" and "^[[I" to bleed through to applications.  Here is
> how I have tested this:
>
> 1.  Connect to remote host over ssh.
> 2.  Run `cat'.
> 3. Click on the mintty taskbar entry repeatedly.  Note that there are
> no control characters showing up.
>
> Now, I repeat the above steps, but before running cat, I launched a
> tmux session using `tmux'.
>
> Now, when I click the mintty taskbar, I see:
>
> ^[[O^[[I
>
> repeatedly.  In other applications things will manifest differently,
> but my issue is specifically with irssi where "[I" shows up in the
> input box every time I focus mintty, which is quite annoying.
>
> In order to try and mitigate this issue, I attempted to echo ^[[?1004l
> per http://code.google.com/p/mintty/wiki/Changes (under version
> 0.4.1).  Exact steps were:
>
> 1. Launch mintty.
> 2. Run `cat' locally.
> 3. Press "ESC [ ? 1 0 0 4 l", followed by ^D.  I believe this should
> echo the correct control sequence, can someone confirm?  Nothing shows
> up on stdout from cat, so it appears mintty is indeed interpreting
> this as a control sequence.
> 4. Connect to same remote host, run tmux and cat as described before.
> 5. Focus and unfocus mintty by clicking the taskbar entry.
>
> However, the above steps still show the focus reporting control
> characters bleeding through to cat.
>
> Am I going about disabling focus reporting correctly?  Should it do
> what I think it should be doing?  Is there some other solution that I
> might be missing?
Reading your report above, it seems tmux enables focus reporting (and 
doesn't handle it then...).
So as a workaround, you would need to disable it (sending that escape 
sequence) *after* you've started tmux, inside it.
--
Thomas

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019