Onde posso encontrar os nomes das teclas do teclado usando o mc.keymap?

0

Eu quero atribuir algumas ações aos principais bindnigs no Midnight Commander como Alt + [ ou Alt + ]
. Onde posso encontrar "nomes de código" para esta (e outras) chaves?
Por exemplo eu já encontrei algumas chaves:
'="prime"
{="lbrace"
} "rbrace"
< ="lt"
> ="gt"

Obrigado.

    
por Mikel Vysotsky 16.02.2016 / 19:21

1 resposta

0

exibindo o código-fonte do Midnight Commander, o arquivo que você quer examinar é 'lib / tty / keys.c', com a seção relevante comentada como "Rótulo alternativo"

Aqui está a seção relevante, seguida de um link para o arquivo no repositório oficial do projeto.

/* Alternative label */
{ESC_CHAR, "esc", N_("Escape"), "Esc"},
{KEY_BACKSPACE, "bs", N_("Backspace"), "Bakspace"},
{KEY_IC, "ins", N_("Insert"), "Ins"},
{KEY_DC, "del", N_("Delete"), "Del"},
{(int) '*', "asterisk", N_("Asterisk"), "*"},
{(int) '-', "minus", N_("Minus"), "-"},
{(int) '+', "plus", N_("Plus"), "+"},
{(int) '.', "dot", N_("Dot"), "."},
{(int) '<', "lt", N_("Less than"), "<"},
{(int) '>', "gt", N_("Great than"), ">"},
{(int) '=', "equal", N_("Equal"), "="},
{(int) ',', "comma", N_("Comma"), ","},
{(int) '\'', "apostrophe", N_("Apostrophe"), "\'"},
{(int) ':', "colon", N_("Colon"), ":"},
{(int) ';', "semicolon", N_("Semicolon"), ";"},
{(int) '!', "exclamation", N_("Exclamation mark"), "!"},
{(int) '?', "question", N_("Question mark"), "?"},
{(int) '&', "ampersand", N_("Ampersand"), "&"},
{(int) '$', "dollar", N_("Dollar sign"), "$"},
{(int) '"', "quota", N_("Quotation mark"), "\""},
{(int) '%', "percent", N_("Percent sign"), "%"},
{(int) '^', "caret", N_("Caret"), "^"},
{(int) '~', "tilda", N_("Tilda"), "~"},
{(int) ''', "prime", N_("Prime"), "'"},
{(int) '_', "underline", N_("Underline"), "_"},
{(int) '_', "understrike", N_("Understrike"), "_"},
{(int) '|', "pipe", N_("Pipe"), "|"},
{(int) '(', "lparenthesis", N_("Left parenthesis"), "("},
{(int) ')', "rparenthesis", N_("Right parenthesis"), ")"},
{(int) '[', "lbracket", N_("Left bracket"), "["},
{(int) ']', "rbracket", N_("Right bracket"), "]"},
{(int) '{', "lbrace", N_("Left brace"), "{"},
{(int) '}', "rbrace", N_("Right brace"), "}"},
{(int) '\n', "enter", N_("Enter"), "Enter"},
{(int) '\t', "tab", N_("Tab key"), "Tab"},
{(int) ' ', "space", N_("Space key"), "Space"},
{(int) '/', "slash", N_("Slash key"), "/"},
{(int) '\', "backslash", N_("Backslash key"), "\"},
{(int) '#', "number", N_("Number sign #"), "#"},
{(int) '#', "hash", N_("Number sign #"), "#"},
/* TRANSLATORS: Please translate as in "at sign" (@). */
{(int) '@', "at", N_("At sign"), "@"},

link

    
por 23.02.2016 / 06:36