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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=Vj FklPrgSYQyK31rqbr+A+yOXZTXl4vVhWySu78Waab+09lb9tH7IoDl8h3sRQ7YVd 74ZNscxijsMv5RmCNq7tVRP33pfZj4p0hDfnU4LKYOhuM1c54z44oRaq0/9aj5gs Jrv0AJ+Z+vQ9bmt9J8yn/fc9ytNgHg4BzW6yft1jw= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=tSypLk16 g47Z9Z2jwyeewYUwrso=; b=uDdRXQySeyJqJSA6bmI5okvoIKvKUHhXthdLoXCQ 1VIHBpv+5wUiixcarJ/Wql+MRddHBP6viXCYRJuEf8k1suhSQhchMOYhNHtZrLsE L27NBMP4UMiOclsysmMjSFwTkZGxt+ArrQ82rXdtbis+2TzwmVIfImFiBUfRx1Zr keM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-ee0-f52.google.com MIME-Version: 1.0 X-Received: by 10.15.77.199 with SMTP id p47mr4885037eey.50.1377607923897; Tue, 27 Aug 2013 05:52:03 -0700 (PDT) In-Reply-To: <521BC420.9030906@towo.net> References: <521BC420 DOT 9030906 AT towo DOT net> Date: Tue, 27 Aug 2013 07:52:03 -0500 Message-ID: Subject: Re: Disabling focus reporting in mintty From: John Koelndorfer To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Thomas, thanks for the suggestion. I thought I had tried that and indeed, when I attempted to disable focus reporting within tmux there wasn't any change. I'd have to guess that tmux is intercepting the control sequence and probably discarding it. I don't know enough about terminal emulation to say if that's a sane thing to do. In any case, I'm told in #tmux on freenode that focus reporting can be disabled in tmux 1.9, so it's just a matter of waiting for that release (or building the latest sources). Thanks again! On Mon, Aug 26, 2013 at 4:09 PM, Thomas Wolff wrote: > 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 > -- 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