Add documentation for loadkeys’s -q option to loadkeys.y
PATCH 1/1 Add documentation for loadkeys’s -q option to loadkeys.y
86d0ca1 only altered loadkeys.c. Subsequent modifications to the yacc source file loadkeys.y made this change disappear again.
Signed-off-by Michael Schutte <[email protected]>
--- src/loadkeys.c | 7 ++++--- src/loadkeys.y | 1 + 2 files changed, 5 insertions(+), 3 deletions(-)
src/loadkeys.c +4 -3
@@ -163,7 +163,7 @@ int yylex (void);/* Line 189 of yacc.c */ -#line 167 "loadkeys.c" +#line 167 "y.tab.c"/* Enabling traces. */ #ifndef YYDEBUG
@@ -275,7 +275,7 @@ typedef int YYSTYPE;/* Line 264 of yacc.c */ -#line 279 "loadkeys.c" +#line 279 "y.tab.c"#ifdef short# undef short
@@ -1825,7 +1825,7 @@ yyreduce:/* Line 1455 of yacc.c */ -#line 1829 "loadkeys.c" +#line 1829 "y.tab.c"default :break ; }YY_SYMBOL_PRINT ("-> $$ =" , yyr1[yyn], &yyval, &yyloc);
@@ -2057,6 +2057,7 @@ usage(void) {" -d --default load \"%s\"\n" " -h --help display this help text\n" " -m --mktable output a \"defkeymap.c\" to stdout\n" +" -q --quiet suppress all normal output\n" " -s --clearstrings clear kernel string table\n" " -u --unicode force conversion to Unicode\n" " -v --verbose report the changes\n"), PACKAGE_VERSION, DEFMAP);
src/loadkeys.y +1 -0
@@ -276,6 +276,7 @@ usage(void) { " -d --default load \"%s\"\n" " -h --help display this help text\n" " -m --mktable output a \"defkeymap.c\" to stdout\n" +" -q --quiet suppress all normal output\n" " -s --clearstrings clear kernel string table\n" " -u --unicode force conversion to Unicode\n" " -v --verbose report the changes\n"), PACKAGE_VERSION, DEFMAP);
Signature · 1 line
1.6.2.4
PATCH 1/1 dumpkeys: Use U+… in “compose” lines if KDGKBDIACRUC is available
This makes dumpkeys | loadkeys idempotent even if no “-c charset” option is used with dumpkeys.
Signed-off-by Michael Schutte <[email protected]>
--- src/dumpkeys.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
src/dumpkeys.c +1 -3
@@ -249,9 +249,7 @@ dump_diacs(void) {outchar (kd.kbdiacruc[i].diacr &0xff );printf (" " );outchar (kd.kbdiacruc[i].base &0xff ); -printf (" to " ); -outchar (convert_code (kd.kbdiacruc[i].result ^0xf000 ,TO_8BIT )); - printf("\n"); + printf(" to U+%04x\n", kd.kbdiacruc[i].result); }#else for (i =0 ; i < kd.kb_cnt; i++) {
Signature · 1 line
1.6.2.4
Alexey Gladkov
AppliedRe: [kbd] [PATCH] dumpkeys: Use U+… in “compose” lines if KDGKBDIACRUC is available
Quoted 4 lines · Michael Schutte
This makes dumpkeys | loadkeys idempotent even if no “-c charset” option is used with dumpkeys.
Signed-off-by Michael Schutte <[email protected]>
Applied, thanks!
Signature · 1 line
Rgrds, legion
Alexey Gladkov
AppliedQuoted 2 lines · Michael Schutte
86d0ca1 only altered
loadkeys.c. Subsequent modifications to the yacc source file loadkeys.y made this change disappear again.
Applied, thanks!
Signature · 1 line
Rgrds, legion