public inbox for kbd@lists.linux.dev
 help / color / mirror / Atom feed
From: "Dmitriy Perlow" <dap@open.by>
To: kbd@lists.altlinux.org
Subject: Re: [kbd] kbd-2.0.0wip (development)
Date: Tue, 14 May 2013 16:33:02 +0300	[thread overview]
Message-ID: <op.ww2s9cfsodbuyo@darkness> (raw)
In-Reply-To: <51921A87.5020505@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

Alexey Gladkov <gladkov.alexey@gmail.com> писал(а) в своём письме Tue, 14  
May 2013 14:05:43 +0300:

> 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

-- 
Dmitriy DA(P).DarkneSS Perlow / Linux x64

[-- Attachment #2: kbd-1.15.2-dumpkeys-C-opt.patch --]
[-- Type: application/octet-stream, Size: 2463 bytes --]

Index: man/man1/dumpkeys.1.in
===================================================================
--- man/man1/dumpkeys.1.in.orig
+++ man/man1/dumpkeys.1.in
@@ -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
Index: src/dumpkeys.c
===================================================================
--- src/dumpkeys.c.orig
+++ src/dumpkeys.c
@@ -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();
 

  reply	other threads:[~2013-05-14 13:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14 11:05 [kbd] kbd-2.0.0wip (development) Alexey Gladkov
2013-05-14 13:33 ` Dmitriy Perlow [this message]
2013-05-14 14:01   ` Alexey Gladkov
  -- strict thread matches above, loose matches on Subject: below --
2013-07-30 11:33 Alexey Gladkov
2013-07-30 18:21 ` Dmitriy Perlow
2013-08-03  1:48 ` Ken Moffat
2013-08-18  6:02   ` Ken Moffat
2013-08-09 13:20 ` Alexey Gladkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.ww2s9cfsodbuyo@darkness \
    --to=dap@open.by \
    --cc=kbd@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox