Wo finde ich die Tastennamen in mc.keymap?

731
Mikel Vysotsky

Ich möchte Tastennummern in Midnight Commander wie Alt+ [oder Alt+ einige Aktionen zuweisen ].
Wo finde ich "Code-Namen" für diese (und andere) Schlüssel?
Zum Beispiel habe ich bereits einige Schlüssel gefunden:
`= "prime"
{= "lbrace"
}= "rbrace"
<= "lt"
>= "gt"

Vielen Dank.

0

1 Antwort auf die Frage

0
notdavidcronenberg

Wenn Sie den Quellcode des Midnight Commander verwenden, wird die Datei 'lib / tty / keys.c' angezeigt, in der der Abschnitt "Alternative label" kommentiert ist.

Hier ist der relevante Abschnitt, gefolgt von einem Link zu der Datei im offiziellen Repo des Projekts.

/* Alternative label */, ,, , {(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"), "@"}, 

http://repo.or.cz/midnight-commander.git/blob/HEAD:/lib/tty/key.c