Alexey Gladkov [Sun, 1 May 2011 13:16:37 +0000 (17:16 +0400)]
openvt: Update man-page
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 1 May 2011 13:15:38 +0000 (17:15 +0400)]
openvt: Add --exec option
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 28 Apr 2011 22:29:33 +0000 (02:29 +0400)]
openvt: Use long options
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 28 Apr 2011 10:09:39 +0000 (14:09 +0400)]
openvt: Change authenticate_user() and usage() declaration
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 28 Apr 2011 07:50:24 +0000 (11:50 +0400)]
openvt: Remove openvt.h
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 28 Apr 2011 07:38:58 +0000 (11:38 +0400)]
openvt: Move copyright information to COPYING
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 28 Apr 2011 06:51:51 +0000 (10:51 +0400)]
openvt: Add -V option
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 27 Apr 2011 23:03:24 +0000 (03:03 +0400)]
openvt: Change error messages and error handling
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 27 Apr 2011 12:44:07 +0000 (16:44 +0400)]
openvt: Use xmalloc
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 27 Apr 2011 12:30:24 +0000 (16:30 +0400)]
openvt: Fix verbose message
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 19 Apr 2011 08:06:26 +0000 (12:06 +0400)]
openvt: Fixed race condition between the two run the utility
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 12 Apr 2011 22:16:25 +0000 (02:16 +0400)]
Update changelog and increase version (1.15.3wip)
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 12 Apr 2011 21:40:38 +0000 (01:40 +0400)]
Update translations
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 12 Apr 2011 11:14:01 +0000 (15:14 +0400)]
kbdinfo: Change help message
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 12 Apr 2011 10:56:50 +0000 (14:56 +0400)]
Remove AC_PROG_YACC dup
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 12 Apr 2011 10:36:33 +0000 (14:36 +0400)]
Merge branch 'loadkeys'
Dustin Kirkland [Sat, 9 Apr 2011 20:27:22 +0000 (00:27 +0400)]
Color scheme of the console in Ubuntu
Signed-off-by: Dustin Kirkland <kirkland@ubuntu.com>
Alexey Gladkov [Thu, 7 Apr 2011 20:52:31 +0000 (00:52 +0400)]
[keymaps] Add dvorak-ru keymap
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Robert White [Thu, 7 Apr 2011 20:35:01 +0000 (00:35 +0400)]
openvt: Fix -w option
The openvt command, when using option -w needs to close the file descriptor
attached to the allocated vt or it will always return an error because the vt
is "still in use" by openvt.
Signed-off-by: Robert White <rwhite@pobox.com>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 5 Apr 2011 16:23:13 +0000 (20:23 +0400)]
openvt: Indent code
indent -linux -cli8 -psl openvt.c
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 3 Apr 2011 00:34:20 +0000 (04:34 +0400)]
setvtrgb: New utility to set the virtual terminal RGB colors
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 29 Mar 2011 22:20:56 +0000 (02:20 +0400)]
kbdinfo: Add new utility to obtain information about console
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 29 Mar 2011 22:01:39 +0000 (02:01 +0400)]
Remove debug messages
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 15 Mar 2011 01:12:42 +0000 (04:12 +0300)]
loadkeys: Add LOADKEYS_KEYMAP_PATH env variable
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 9 Mar 2011 11:50:54 +0000 (14:50 +0300)]
loadkeys: Reorganize code
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 28 Feb 2011 23:48:40 +0000 (02:48 +0300)]
loadkeys: Use EXIT_FAILURE and EXIT_SUCCESS
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 28 Feb 2011 23:43:36 +0000 (02:43 +0300)]
loadkeys: Use Linux coding style
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 22 Feb 2011 17:43:28 +0000 (20:43 +0300)]
loadkeys: fatal errors - change to varargs
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 21 Feb 2011 22:59:07 +0000 (01:59 +0300)]
loadkeys: redesign parser
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 5 Feb 2011 14:40:34 +0000 (17:40 +0300)]
loadkeys: Fix some memory leaks
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 2 Feb 2011 23:20:45 +0000 (02:20 +0300)]
findfile: Reduce memory usage and simplify code
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 25 Jan 2011 07:20:02 +0000 (10:20 +0300)]
Move search by fullname into separate function
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Tue, 25 Jan 2011 00:31:42 +0000 (03:31 +0300)]
findfile(): Remove duplicate declarations
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 24 Jan 2011 22:37:03 +0000 (01:37 +0300)]
findfile: Simplify loop code
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 24 Jan 2011 21:32:42 +0000 (00:32 +0300)]
Add xstrndup()
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 23 Jan 2011 01:34:33 +0000 (04:34 +0300)]
loadkeys: Fix some memory leaks
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 23 Jan 2011 01:31:12 +0000 (04:31 +0300)]
Add LatGrkCyr fonts
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 10 Jan 2011 19:28:25 +0000 (22:28 +0300)]
Use MAXPATHLEN constant
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 7 Jan 2011 21:37:45 +0000 (00:37 +0300)]
Drop klibc support
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Michael Schutte [Wed, 13 Oct 2010 15:07:26 +0000 (17:07 +0200)]
Fix "compose as usual" for Unicode diacritics
struct ccc in compose_as_usua[() uses three char members of unspecified
signedness; in case the compiler decides that they should be signed,
negative integers will end up in the accent table for c3 > 127.
Avoid the problem by explicitly using unsigned chars.
Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Nicolas Delvaux [Wed, 8 Sep 2010 21:01:00 +0000 (01:01 +0400)]
[consolefonts]: Add unicode spaces
This was only a partial fix, because fonts that don't have a build-in
Unicode map were still defective.
So I made a patch to update all unimaps files (so the 'data/unimaps'
folder).
You can get it here: http://malaria.perso.sfr.fr/kbd/unimaps.patch
I also made a tar.gz with an updated 'data/consolefonts' folder (thanks
to my script). You can download it here:
http://malaria.perso.sfr.fr/kbd/updated_consolefonts.tar.gz
So, basically, if you apply this patch and replace all fonts by their
updated version, then your KBD will support all Unicode spaces (and so
the 'narrow no-break space' which is the one I primarily want).
You can test with "/usr/bin/printf '\uCODEx\n'" where 'CODE' can be
0020, 00a0, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
200a or 202f.
(Yes, all are different kinds of Unicode spaces. See this site if you
want more details about each char:
http://www.fileformat.info/info/unicode/char/search.htm )
Signed-off-by: Nicolas Delvaux <nicolas.delvaux@gmx.com>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Maarten ter Huurne [Sun, 25 Jul 2010 13:06:42 +0000 (17:06 +0400)]
Replace index() and rindex() with strchr() and strrchr()
Hi Alexey,
Attached is a patch for kbd-1.15.2. It replaces index() and rindex() with
strchr() and strrchr().
The man page of rindex says:
4.3BSD; marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removes the
specifications of index() and rindex(), recommending strchr(3) and
strrchr(3) instead.
I tried to compile kbd for a uClibc based embedded system. First I got
compile errors about missing prototypes for index() and rindex(), which were
fixed by adding an include of <strings.h> (not <string.h> which was already
included). However, this only lead to a link error on index and rindex. It
seems uClibc, depending on some #defines, can either have no definition for
(r)index, a prototype (extern) declaration or a macro definition
substituting (r)index by str(r)chr.
I figured it was simpler to just replace index() and rindex() with strchr()
and strrchr() in the source code than to figure out what #defines are needed
to make it work. Most likely it is also more future proof. If you agree,
please apply the attached patch.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 5 Jul 2010 21:44:00 +0000 (01:44 +0400)]
Do not set prefer_unicode for iso-8859-1
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 30 Jun 2010 13:56:16 +0000 (17:56 +0400)]
loadkeys -a: Switch to ASCII mode
This change is introduced in order to be forced to stay
in ASCII mode to Unicode console, see http://bugs.gentoo.org/324351.
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Olivier Mehani [Sun, 25 Apr 2010 07:12:08 +0000 (17:12 +1000)]
Don't open console on --bkeymap
Check that -b hasn't specified, similarly to -m, before loadkeys tries to open
the console. As for --mktable, --bkeymap doesn't need it. This allows to dump
binary keymaps in a larger range of situations where ownership of the console
device is not guarranteed e.g., when running from an Xterm.
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 10 Apr 2010 21:32:24 +0000 (01:32 +0400)]
Remove obsolete file
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 10 Apr 2010 21:21:46 +0000 (01:21 +0400)]
Change automake behavior
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 10 Apr 2010 21:19:59 +0000 (01:19 +0400)]
Update po/ directory
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 8 Apr 2010 16:50:03 +0000 (20:50 +0400)]
Makefile.am: Add ACLOCAL_AMFLAGS variable to handle m4/ directory
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 2 Apr 2010 01:09:40 +0000 (05:09 +0400)]
Update changelog and increase version
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 28 Feb 2010 14:14:59 +0000 (17:14 +0300)]
[keymaps] Fix colemak installation
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Richard Zidlicky [Sun, 28 Feb 2010 13:51:34 +0000 (16:51 +0300)]
[keymaps] Add "mobii" specific keymap
I have a modified keymap for my "Mobii Point of View" Netbook (1st generation).
It is a i386/qwertz/de-latin1* keyboard with some switched keys, my changes are
this:
keycode 43 = less greater bar
keycode 126 = Find
keycode 102 = numbersign apostrophe
Signed-off-by: Richard Zidlicky <rz@linux-m68k.org>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 3 Jan 2010 00:17:38 +0000 (03:17 +0300)]
vcstime: Fix build warning
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Michael Schutte [Sat, 2 Jan 2010 16:34:41 +0000 (17:34 +0100)]
vcstime: Use either /dev/vcs[a] or /dev/vcs[a]0
Make vcstime work on all systems by considering both /dev/vcs and
/dev/vcs0 to hold the console memory for the current VT.
Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 2 Dec 2009 23:48:07 +0000 (02:48 +0300)]
psffontop: Fix possible alignment issues, wrt -Wcast-align
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 28 Nov 2009 22:55:25 +0000 (01:55 +0300)]
Add georgian font
Font content is same as for LatArCyrHeb font, but georgian one is added
instead of "Ar". Font created by Levani Shoshiashvili <shoshia@hotmail.com>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 22 Nov 2009 19:25:42 +0000 (22:25 +0300)]
Regenerate loadkeys.c
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 22 Nov 2009 19:24:01 +0000 (22:24 +0300)]
po: update indonesian translation
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 22 Nov 2009 19:17:55 +0000 (22:17 +0300)]
Fix translation
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 20 Nov 2009 00:21:35 +0000 (03:21 +0300)]
[build] Use automake to build translations
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Michael Schutte [Sun, 15 Nov 2009 15:34:16 +0000 (16:34 +0100)]
[kbd] [PATCH] loadkeys -u: Switch to Unicode mode, if necessary
Make defkeys() KDSKBMODE to K_UNICODE before it starts to do KDSKBENT
ioctls. Switch back to the preceding keyboard mode after defining keys.
This change is introduced for compatibility reasons, see
http://bugs.gentoo.org/289265. As a minor difference, the warning
message telling users to run "kbd_mode -u" is printed whenever
"loadkeys -u" is used, not only when actual Unicode keysyms are loaded.
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Fri, 9 Oct 2009 13:36:06 +0000 (17:36 +0400)]
po: update translations
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 21 Sep 2009 11:09:24 +0000 (15:09 +0400)]
[keymaps] Add Tajik keymap
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 13 Sep 2009 10:21:26 +0000 (14:21 +0400)]
Update changelog and increase version
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 13 Sep 2009 09:42:55 +0000 (13:42 +0400)]
Add depcomp
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 24 Aug 2009 11:19:22 +0000 (15:19 +0400)]
[BUILD] Fix problems at cross-compiling
Hello,
I'm trying to cross-compile kbd-1.14. I configured it with the following arguments:
--prefix=/usr --build=i686-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --disable-nls
I get the following error message:
configure: error: cannot check setpgrp when cross compiling
I can fix it by adding ac_cv_func_setpgrp_void=yes to the configure arguments list,
but I wonder if this is the normal and recommended way to proceed or if it is a bug.
Also, I cannot run "make" successfully because of the following error message:
mapscrn-xmalloc.o: In function `xrealloc':
xmalloc.c:(.text+0x67): undefined reference to `rpl_realloc'
mapscrn-xmalloc.o: In function `xmalloc':
xmalloc.c:(.text+0xa7): undefined reference to `rpl_malloc'
mapscrn-kdmapop.o: In function `getunimap':
kdmapop.c:(.text+0x248): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
I can fix it by adding ac_cv_func_malloc_0_nonnull=yes and ac_cv_func_realloc_0_nonnull=yes
to the configure arguments list. I have the same doubt as before.
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Fri, 24 Jul 2009 10:28:27 +0000 (12:28 +0200)]
Enable UNUMBERs in compose definitions
As always, auto-conversion applies in case of XLATE mode (or no
KDSKBDIACRUC support).
Since 18eadfe…, loadkeys supports the composition of two Unicode keysyms
to another Unicode keysym. Whereas the resulting char could already be
specified as U+…, diacr and base had to be given as 8-bit characters,
which is ugly with today’s Unicode support. Since it isn’t realistic to
make keymaps capable of UTF-8, I was asked by a Debian developer to at
least make it possible to specify Unicode codepoints. rvalue is
unsuitable at this point (because it does some trickery with KT_LATIN
vs. KT_LETTER which is not applicable here), I decided to add this to a
new expression just for compose.
Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Michael Schutte [Fri, 24 Jul 2009 11:55:20 +0000 (13:55 +0200)]
Never handle plain ASCII characters as Unicode
This doesn’t seem to work for compose: The Unicode keysym representing
an ASCII char gets inserted and the kernel waits for another keypress to
be “dead”.
Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Wed, 17 Jun 2009 18:05:08 +0000 (20:05 +0200)]
Add support for Brl_dot9 and Brl_dot10
The keysyms have been supported by Linux kernels since 2.6.23.
This patch was submitted by Samuel Thibault <sthibault@debian.org>.
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Sat, 13 Jun 2009 13:16:38 +0000 (17:16 +0400)]
[keymaps] Add French keymap Dvorak
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Sat, 13 Jun 2009 12:37:42 +0000 (16:37 +0400)]
[keymaps] Add UK keymap for the Sun Type-6 keyboard
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Sat, 13 Jun 2009 12:34:54 +0000 (16:34 +0400)]
[keymaps] Add keymap for German Intel based Macs
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Thu, 11 Jun 2009 18:38:25 +0000 (20:38 +0200)]
Update setkeycodes manpage information about hardwired keycodes
At least newer kernels don’t use hardwired scancode-keycode mappings.
Rephrase the affected part of the setkeycodes(8) manpage.
Signed-off-by: Michael Schutte <michi@uiae.at>
Michael Schutte [Thu, 11 Jun 2009 18:38:17 +0000 (20:38 +0200)]
Replace “-” by “\-” in some manpages when options are mentioned
“-” is treated as a hyphen (U+2010) by groff. “\-” is the intended
ASCII minus sign.
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Tue, 9 Jun 2009 18:26:48 +0000 (22:26 +0400)]
[keymaps] Add keymap for Colemak
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Mon, 8 Jun 2009 11:26:22 +0000 (15:26 +0400)]
Merge branch 'klibc/1.15-dev'
Conflicts:
src/loadkeys.c
Michael Schutte [Mon, 1 Jun 2009 09:21:05 +0000 (11:21 +0200)]
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 <michi@uiae.at>
Michael Schutte [Mon, 1 Jun 2009 09:21:04 +0000 (11:21 +0200)]
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 <michi@uiae.at>
Alexey Gladkov [Thu, 21 May 2009 19:51:50 +0000 (23:51 +0400)]
[BUILD] klibc port
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Mon, 18 May 2009 17:47:00 +0000 (19:47 +0200)]
showconsolefont: Print adequate space chars
Figure out whether the console is in Unicode or XLATE mode to decide
whether to use a direct-to-font (U+F020) or a simple ASCII space
character, respectively. This avoids showconsolefont’s output becoming
a mess, cf. <http://bugs.debian.org/528357>.
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Mon, 18 May 2009 20:49:40 +0000 (00:49 +0400)]
Merge branch 'auto-convert-keymaps'
Michael Schutte [Sat, 9 May 2009 17:38:26 +0000 (19:38 +0200)]
Clarify convert_code() and ksymtocode()
Use the direction constants defined in ksyms.h instead of some ugly
boolean jugglery.
Signed-off-by: Michael Schutte <michi@uiae.at>
Michael Schutte [Sat, 9 May 2009 17:29:16 +0000 (19:29 +0200)]
Use static memory for chosen_charset
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Thu, 7 May 2009 10:54:30 +0000 (14:54 +0400)]
Rename kir_alt_sh-UTF-8.map -> ky_alt_sh-UTF-8.map
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Fri, 1 May 2009 18:30:33 +0000 (20:30 +0200)]
Regenerate analyze.c and loadkeys.c
Signed-off-by: Michael Schutte <michi@uiae.at>
Michael Schutte [Tue, 28 Apr 2009 13:45:28 +0000 (15:45 +0200)]
Support Unicode compose tables
Use KDSKBDIACRUC, kbdiacruc etc., if available, to allow the use of
composed characters from more than a single 8-bit charset. Because the
majority of the existing keymaps uses “compose '…' '…' to '…'”
specifications which allow only 8-bit characters, perform automatical
conversions using the existing infrastructure.
Signed-off-by: Michael Schutte <michi@uiae.at>
Michael Schutte [Tue, 28 Apr 2009 13:27:44 +0000 (15:27 +0200)]
Support bidirectional conversion of keysyms
Enhance ksymtocode() and convert_code() to accept a “direction”
parameter which can be one of TO_UNICODE, TO_8BIT or TO_AUTO. The
latter enables the old behavior of using prefer_unicode.
This prepares the codebase for another patch to make loadkeys convert
diacriticals (for the KD?KBDIACRUC ioctls present in newer kernels).
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Sun, 26 Apr 2009 12:09:49 +0000 (16:09 +0400)]
[keymaps] Add Kirghiz keymap
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Sat, 25 Apr 2009 14:41:41 +0000 (16:41 +0200)]
Fix two problems with the keymap auto-conversion patch
* Correctly resolve plain ASCII characters in codetoksym. The original
auto-conversion patch handles keysyms smaller than 0x80 incorrectly if
prefer_unicode is set.
* Avoid a memory leak in set_charset.
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Tue, 21 Apr 2009 10:22:15 +0000 (14:22 +0400)]
Regenerate loadkeys.c
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Tue, 14 Apr 2009 08:46:32 +0000 (10:46 +0200)]
loadkeys: Auto-convert “traditional”/Unicode keysyms
The Linux kernel distinguishes between K(KTYP, KVAL) keysyms and Unicode
characters. This patch makes loadkeys query the console’s Unicode mode
and convert between the two keysym types according to the result. The
theoretical advantage is that less keymaps need both an 8-bit and a
Unicode variant (cf. trq[u], ua[-utf]).
A similar patch (read_keymaps_fmt) has been in use in Debian’s version
of kbd since 2004; see <http://bugs.debian.org/251550> for a discussion.
Credit for this goes to Denis Barbier <barbier@linuxfr.org>.
Signed-off-by: Michael Schutte <michi@uiae.at>
Alexey Gladkov [Wed, 8 Apr 2009 11:32:39 +0000 (15:32 +0400)]
loadkeys: Document -q option
Hi,
the -q option of loadkeys isn't documented anywhere,
attached patch will mention it in --help and manpage.
Best regards,
Vitezslav Crhonek
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Fri, 6 Mar 2009 23:54:27 +0000 (02:54 +0300)]
[consolefonts] Add U+2010, U+2012, U+2013, U+2018, U+2019, U+2212 to the embedded character table
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Fri, 6 Mar 2009 16:31:46 +0000 (19:31 +0300)]
[keymaps] bg_pho-utf8 keycode 38 assignment fix
I noticed that when using the bulgarian phonetic utf8 keymap, a cyrillic
"i" was output instead of a cyrillic "l".
Signed-off-by: Dimiter Petrov <dimiter.p@gmail.com>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Fri, 6 Mar 2009 16:18:14 +0000 (19:18 +0300)]
Update .gitignore
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Fri, 6 Mar 2009 16:03:06 +0000 (19:03 +0300)]
Update analyze.c
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Thu, 5 Mar 2009 21:09:28 +0000 (00:09 +0300)]
Fix format error
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Tue, 3 Mar 2009 16:14:07 +0000 (19:14 +0300)]
[BUILD] Fix build warnings
Fix strict gcc warnings that come from using:
-Wall -Wextra -Wmissing-noreturn -Wdisabled-optimization -Wcast-align
-Wshadow -Wmissing-format-attribute -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Herton Ronaldo Krzesinski [Tue, 10 Feb 2009 13:31:55 +0000 (11:31 -0200)]
Fix errors when building with -Werror=format-security gcc option
Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Michael Schutte [Thu, 25 Dec 2008 20:22:24 +0000 (23:22 +0300)]
kbd_mode(1): Document the -C option
Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>