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