Hello,

One small typo in `setkey_func' (use of pointer instead of value) preventing
from remapping the keyboard when `setkey' is invoked without argument.

Omission of this feature in the info file.

Diffs attached.

\bye
-- 
Thierry LARONDE <[EMAIL PROTECTED]>
10, rue du Bel Air, 74000 ANNECY - FRANCE/ Tel : 33.(0)4.50.67.46.61
/home du SDF (Site Debian Francophone) : http://www.polynum.com/sdf/
--- ./grub/docs/user-ref.texi   Wed Dec 27 13:15:57 2000
+++ ./grub/docs/user-ref.texi   Sun Jan 14 23:16:47 2001
@@ -738,9 +738,9 @@
 
 @deffn Command setkey to_key from_key
 Change the keyboard map. The key @var{from_key} is mapped to the key
-@var{to_key}. Note that this command @emph{does not} exchange the
-keys. If you want to exchange the keys, run this command again with the
-arguments exchanged, like this:
+@var{to_key}. If no argument is specified, reset key mappings. Note that 
+this command @emph{does not} exchange the keys. If you want to exchange 
+the keys, run this command again with the arguments exchanged, like this:
 
 @example
 grub> @kbd{setkey capslock control}

--- ./grub/stage2/builtins.c    Sun Jan 14 20:57:15 2001
+++ ./grub/stage2/builtins.c    Sun Jan 14 23:06:41 2001
@@ -3396,7 +3396,7 @@
   to_key = arg;
   from_key = skip_to (0, to_key);
 
-  if (! to_key)
+  if (! *to_key)
     {
       /* If the user specifies no argument, reset the key mappings.  */
       grub_memset (bios_key_map, 0, KEY_MAP_SIZE * sizeof (unsigned short));

Reply via email to