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=LwlxW97fkA9XLjGdidPaF7i/eHvtlwPpwJhJlSivecJ nDIMpNjagfWHtzZW6a79XX+CrqOLgoROBMGBw5NNGyVwiOCH6rOWzpIDYUi5yquu mVjvA3b2LUN5mG0fXSVzCxky0TyY+sZKWaHjolKDP6ssozstQn7itNCatLoDGpLE = 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=qnY6RSI7WEUqOPO/TAMcUGeHoEA=; b=bnmaurLx1cxqJtMol d/meXdjw1HylPe2CHtfkwu6mf7gRfdTYjZbbx5Ukp9vEoJnDkVTKitkHudXDj0q8 f+EsP0u0IzZZUyq/iaJkMzjsgMe+s8HF1gnngXfDe92+0fMmZHxz1r5ArK6dWVfN YYhrTEHOJkT/V4HHV+li4sveY0= 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 X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_NEUTRAL autolearn=ham version=3.3.1 Message-ID: <514B2CEF.3090100@cs.utoronto.ca> Date: Thu, 21 Mar 2013 11:53:19 -0400 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mintty and Control-` , Control-~ References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21/03/2013 11:30 AM, Igor Bukanov wrote: > It seems that mintty in Cygwin under Windows-7 does not pass C-` > (Control-backtick, in US keyboard this is the key above the tab) nor > C-~ (or Control-Shift-backtick) to terminal applications. Any reason > for that? A quick test [3] in shortcut override mode [1] suggests that mintty never receives that key combination in the first place. However, trying the same test in xterm, I get \000 and \036 for C-` and C-~, respectively. Neither of those seems to be correct [2] (\000 is ^@ and \036 is ^^), but it's still odd that xterm can receive key codes that mintty misses. Maybe someone who knows more about terminals and key mappings can comment? Ryan [1] http://code.google.com/p/mintty/wiki/CtrlSeqs#Shortcut_override_mode [2] http://en.wikipedia.org/wiki/ASCII#ASCII_control_code_chart [3] $ cat echo-octets.c #include #include #include int main(int argc, char const* argv[]) { unsigned char c; while(1 == read(0, &c, 1)) { if(isprint(c) && !isspace(c)) fprintf(stderr, " %c ", c); else fprintf(stderr, "\\%03o ", (int) c); if(c == '\n') fprintf(stderr, "%c", c); } return 0; } -- 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