X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4AF99932.5090702@towo.net> Date: Tue, 10 Nov 2009 17:47:46 +0100 From: Thomas Wolff User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin-patches AT cygwin DOT com, cygwin AT cygwin DOT com Subject: Re: console enhancements: mouse events References: <0M7Ual-1MBB3j1CFD-00whzl AT mrelayeu DOT kundenserver DOT de> <20091106101448 DOT GA2568 AT calimero DOT vinschen DOT de> <4AF73FEC DOT 2050300 AT towo DOT net> <20091109133551 DOT GA10130 AT calimero DOT vinschen DOT de> In-Reply-To: <20091109133551.GA10130@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 Corinna Vinschen schrieb: >>>> - Pressing something like Alt-ö on a German keyboard leaves an >>>> illegal UTF-8 sequence (the second byte of the respective >>>> sequence) in input, apparently because Alt-0xC3 is handled >>>> somehow. Don't know, though, whether this is a cygwin >>>> console issue or maybe a readline issue. >>>> >>> Alt is converted to a leading ESC. I don't know how to fix that for >>> non-ASCII chars, yet. >>> >> For non-ASCII it works fine, thanks to Andy for clarifying; I could >> > > Erm... sorry, but do we really talk about the same? If you press > Alt-ö, the console generates the sequence ESC 0xc3 0xb6. That's not > desired so I'm contemplating the idea to skip the keypress if the > resulting multibyte char is > 1 byte. This restricts ESC-somekey > either to explicit function key sequences (ESC-[-foo, etc), or > to just two byte sequences like ESC-A, ESC-0, ESC-;, etc. > I had not expected you to take action on this issue so soon: > - Don't create ESC sequences for ALT-key keypresses if key translates > into a multibyte sequence. This avoids stray bytes in input when > pressing for instance ALT-ö (Umlaut-o) under UTF-8. > - especially given: > ... And, whatever > super-duper change we make to this essential console code in future, > let's wait until after 1.7.1, please. > Actually, I think this is the wrong change. I'm sorry I came up with this confusion because I didn't test sufficiently, but as I said in my second mail > For non-ASCII it works fine, and contemplating again > If you press Alt-ö, the console generates the sequence ESC 0xc3 0xb6. I think this is absolutely the right thing to generate - after all, what else should be expected here? The "stray bytes" are created in bash/readline, the previous behavior of cygwin console in this case was perfect, I'd suggest to revert, please. 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