kbd-2.0.0wip (development)
Greetings!
Here's a new development version of the project. The loadkeys and dumpkeys rewritten using the new library. API isn't stable yet. This version shouldn't be used in production.
I'd be very grateful if you can help in testing this version.
ftp://devel.altlinux.org/legion/kbd/kbd-2.0.0wip-20130514.tar.gz
Signature · 1 line
Rgrds, legion
Alexey Gladkov <[email protected]> писал(а) в своём письме Tue, 14 May 2013 14:05:43 +0300:
Quoted 10 lines
Greetings!
Here's a new development version of the project. The loadkeys and dumpkeys rewritten using the new library. API isn't stable yet. This version shouldn't be used in production.
I'd be very grateful if you can help in testing this version.
ftp://devel.altlinux.org/legion/kbd/kbd-2.0.0wip-20130514.tar.gz
Hello!
It builds fine for several openSUSE versions: https://build.opensuse.org/package/show?package=kbd&project=home%3ADarkSS
I've already installed it at my own machine, so I am going to test it.
The only issue I've got was broken openSUSE patch, that implements additional functionality. It would be wonderful if you adopt and merge it. There was a discussion at our bugzilla about it: https://bugzilla.novell.com/show_bug.cgi?id=337238
Signature · 1 line
Dmitriy DA(P).DarkneSS Perlow / Linux x64
man1/dumpkeys.1.in renamed from man1/dumpkeys.1.in.orig +7 -0
@@ -4,6 +4,7 @@ dumpkeys \- dump keyboard translation tables .SH SYNOPSIS .B dumpkeys +.RI [ \-C\ '<vc>' | \-\-console='<vc>' ] [ .B \-hilfn .BI \-c charset
@@ -197,6 +198,12 @@ This option produces an output line `cha loadkeys how to interpret the keymap. (For example, "division" is 0xf7 in iso-8859-1 but 0xba in iso-8859-8.) .LP +The affected console device can be specified using the +.I -C +(or +.I --console +) option. This option supports exactly one device name. +.LP .SH FILES .PD 0 .TP 20
dumpkeys.c renamed from dumpkeys.c.orig +9 -2
@@ -31,6 +31,7 @@static int fd;static int verbose;static int nr_keys =0 ;/* probably 112, 128, 256 or 512 */ +static char * console;int keymap_index[MAX_NR_KEYMAPS ];/* inverse of good_keymap */ int good_keymap[MAX_NR_KEYMAPS ], keymapnr, allocct;
@@ -582,6 +583,8 @@ valid options are:\n\ --funcs-only display only the function key strings\n\ --keys-only display only key bindings\n\ --compose-only display only compose key combinations\n\ + -C <vc>\n\ + --console=<vc> Indicate the virtual console device to be used.\n\ -c --charset=")); list_charsets(stderr); fprintf(stderr, _("\
@@ -593,7 +596,7 @@ valid options are:\n\int main (int argc,char *argv[]) { -const char *short_opts ="hilvsnf1S:c:V" ; +const char *short_opts ="hilvsnf1S:c:C:V" ;const struct option long_opts[] = { {"help" , no_argument,NULL ,'h' }, {"short-info" , no_argument,NULL ,'i' },
@@ -606,6 +609,7 @@ main (int argc, char *argv[]) { { "keys-only", no_argument, NULL, 'k' }, { "compose-only",no_argument, NULL, 'd' }, { "charset", required_argument, NULL, 'c' }, + { "console", required_argument, NULL, 'C' }, { "verbose", no_argument, NULL, 'v' }, { "version", no_argument, NULL, 'V' }, { NULL, 0, NULL, 0 }
@@ -665,6 +669,9 @@ main (int argc, char *argv[]) {usage ();printf ("charset \"%s\"\n" , optarg);break ; +case 'C' : + console = optarg; +break ;case 'V' :print_version_and_exit ();case 'h' :
@@ -676,7 +683,7 @@ main (int argc, char *argv[]) {if (optind < argc)usage (); - fd =getfd (NULL ); + fd =getfd (console);find_nr_keys ();
Quoted 3 lines · Dmitriy Perlow
It builds fine for several openSUSE versions:
https://build.opensuse.org/package/show?package=kbd&project=home%3ADarkSS
I've already installed it at my own machine, so I am going to test it.
Wow! Thanks!
Quoted 2 lines
The only issue I've got was broken openSUSE patch, that implements additional functionality.
Yes. This is a major rewrite of code. All patches of loadkeys/dumpkeys will break.
Quoted 3 lines
It would be wonderful if you adopt and merge it.
There was a discussion at our bugzilla about it:
https://bugzilla.novell.com/show_bug.cgi?id=337238
"dumpkeys -C" ?
I think it's possible.
Signature · 1 line
Rgrds, legion