Last active
June 6, 2024 03:05
-
-
Save jeniferirwin/1763faaeab91da1b098d978169af2d69 to your computer and use it in GitHub Desktop.
PuTTY-like Numpad/Keypad Mapping for Windows Terminal 1.16 (written specifically for TinTin++ compatibility)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I wrote these mappings when I wanted to migrate from using PuTTY to using | |
# Windows Terminal. Originally, all of my TinTin++ numpad macros were broken | |
# because the numpad acts differently in WT by default. These remappings | |
# make the keypad act like it did in PuTTY. | |
# | |
# This has only been tested for TinTin++. I don't really use the keypad in other | |
# programs, so I don't know if this breaks the functionality elsewhere. | |
# | |
# In Windows Terminal, open the Settings tab. In the lower left, you | |
# can 'Open JSON File'. Add the following lines to the 'actions' section. | |
# TinTin++ keypad macros can now be used and written easily. | |
{ "command": { "action": "sendInput", "input": "\u001bOp" }, "keys": "numpad0" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOq" }, "keys": "numpad1" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOr" }, "keys": "numpad2" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOs" }, "keys": "numpad3" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOt" }, "keys": "numpad4" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOu" }, "keys": "numpad5" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOv" }, "keys": "numpad6" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOw" }, "keys": "numpad7" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOx" }, "keys": "numpad8" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOy" }, "keys": "numpad9" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOo" }, "keys": "numpad_divide" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOj" }, "keys": "numpad_multiply" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOm" }, "keys": "numpad_subtract" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOk" }, "keys": "numpad_add" }, | |
{ "command": { "action": "sendInput", "input": "\u001bOn" }, "keys": "numpad_decimal" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment