Skip to contentSkip to conversation

Add documentation for loadkeys’s -q option to loadkeys.y

PATCH Applied Michael Schutte 2 participants 4 messages Jun 1, 2009 – Jun 8, 2009

lore
Share & tools
lore
#0 lore raw

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.

---
 src/loadkeys.c |    7 ++++---
 src/loadkeys.y |    1 +
 2 files changed, 5 insertions(+), 3 deletions(-)
src/loadkeys.c +4 -3
index e2c0c7b..b5dfb38 100644
@@ -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
index 70b48f9..be3e886 100644
@@ -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
#1 lore raw

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.

---
 src/dumpkeys.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
src/dumpkeys.c +1 -3
index 30900a5..326ec37 100644
@@ -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
#2 lore raw

Re: [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.

Applied, thanks!

Signature · 1 line
Rgrds, legion
#3 lore raw
In reply to Michael Schutte
Quoted 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