Skip to content

Instantly share code, notes, and snippets.

@nuclearglow
Last active March 29, 2022 21:11
Show Gist options
  • Save nuclearglow/640069238ace4f8fc34fb852d6eff3d1 to your computer and use it in GitHub Desktop.
Save nuclearglow/640069238ace4f8fc34fb852d6eff3d1 to your computer and use it in GitHub Desktop.
record key sequence linux cli showkey to \u sequence
showkey -a
example:
ctrl+pgup
^[[5;5~ 27 0033 0x1b
91 0133 0x5b
53 0065 0x35
59 0073 0x3b
53 0065 0x35
126 0176 0x7e
send ctrl+pgup command sequence to terminal in vscode:
{
"key": "ctrl+pageup",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001b\u005b\u0035\u003b\u0035\u007e" },
"when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment