delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/03/21/11:53:52

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: <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
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 <ryan DOT johnson AT cs DOT utoronto DOT ca>
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: <CADd11yXqNrSfOEj4Lmf5KyVUL0TWkosEb=3yNprCyLLk_PK-iQ AT mail DOT gmail DOT com>
In-Reply-To: <CADd11yXqNrSfOEj4Lmf5KyVUL0TWkosEb=3yNprCyLLk_PK-iQ@mail.gmail.com>

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 <stdio.h>
#include <unistd.h>
#include <ctype.h>
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

- Raw text -


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