mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

Question: Key remaps possible in config #222

Closed tlelson closed 4 years ago

tlelson commented 4 years ago

How reasonable would it be to provide a config option to remap certain keys?

I'm new to windows and really want/need to remap CAPS to ESC. Any other proposed solutions would be graciously accepted but just want to test the waters here to estimate effort required to implement this within wsltty itself.

mintty commented 4 years ago

This would be a feature of mintty, the terminal part of wsltty. Have you checked whether this could easily be achieved with some desktop tool (e.g. AutoHotKey) or even with Windows native means (you can create your own keyboard mapping)? If you think those don't work or are not suitable, we can look for a mintty config solution.

mintty commented 4 years ago

Actually, remapping CAPS to ESC is already possible, just not the other way round. KeyFunctions=CapsLock:"" where the character inside the double quotes needs to be a verbatim ESC in the mintty config file.

tlelson commented 4 years ago

Thanks @mintty . Much appreciated