Nessesarius / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

configure CTRL-6 and CTRL-^ #155

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am using vim and want to map CTRL-^. It works but I have to type 3 keys
together CTRL-SHIFT-^ using MinTTY  (same thing to rxvt).

However, I only need to type two keys CTRL-6 on Windows using gVim.

I also found that CTRL-6 is mapped to something like <C-V> in vim console. 

It is possible to map CTRL-6 directly?

Thanks

Vimim

Original issue reported on code.google.com by maxiangjiang on 27 Dec 2009 at 4:29

GoogleCodeExporter commented 8 years ago
No, it's not currently possible. 'C-^' requires Ctrl+Shift+6 because plain '^'
requires Shift+6. (As a mintty-specific feature, 'C-^' is also available on 
Ctrl+Enter.)

Key combinations involving Ctrl and digit or symbol keys are not standardised. 
Where
there isn't a corresponding control character, mintty sends keycodes based on 
numpad
codes and xterm's scheme for encoding modifier keys, so e.g. Ctrl+6 is 
'\e[1;5r'.

Having said that, it could try whether Shift+key yields a symbol corresponding 
to a
control character when Ctrl+key is pressed. Perhaps that's the right thing to 
do for
the sake of Windows compatibility. (I think an option for this is out of the
question, because it's just too obscure an issue.)

Original comment by andy.koppe on 27 Dec 2009 at 9:03

GoogleCodeExporter commented 8 years ago
Implemented in r687 on 0.5 branch.

Original comment by andy.koppe on 27 Dec 2009 at 1:03

GoogleCodeExporter commented 8 years ago
Could you please offer minimum instruction as how to use it?

What I did are:

(1) download 
svn checkout http://mintty.googlecode.com/svn/trunk/ mintty-read-only

(2) cd /tmp/mintty-read-only
(3) make

I found the following error/warnings: 
Makefile:100: bufchain.d: No such file or directory
[snip]
Makefile:100: xcwidth.d: No such file or directory
Makefile:100: res.d: No such file or directory

(4) I did find executable: mintty.exe and it worked
(5) Now, how to make <C-6> work?

Thanks

Original comment by maxiangjiang on 27 Dec 2009 at 6:10

GoogleCodeExporter commented 8 years ago
As stated above, the change is on the 0.5 branch, i.e. you need to checkout
http://mintty.googlecode.com/svn/branches/0.5. No further config needed.

Original comment by andy.koppe on 27 Dec 2009 at 6:51

GoogleCodeExporter commented 8 years ago
it works like a charm.

Thanks

vimim

Original comment by maxiangjiang on 27 Dec 2009 at 7:29

GoogleCodeExporter commented 8 years ago

Original comment by andy.koppe on 28 Dec 2009 at 2:14