* commands/minicmd.c: Add clear as alias for cls.

My background is in Unix, so 'clear' comes much more naturally to my
fingers than 'cls'. But it's bad to clutter grub with too many commands.
So I leave this to the maintainers: do we add both commands, only one, or
neither?

-joe


--- a/commands/minicmd.c        2009-07-22 15:43:30.000000000 -0700
+++ b/commands/minicmd.c        2009-07-22 15:43:16.000000000 -0700
@@ -348,7 +348,7 @@

static grub_command_t cmd_cat, cmd_help, cmd_root;
static grub_command_t cmd_dump, cmd_rmmod, cmd_lsmod, cmd_exit;
-static grub_command_t cmd_cls;
+static grub_command_t cmd_cls, cmd_clear;

GRUB_MOD_INIT(minicmd)
{
@@ -376,6 +376,9 @@
  cmd_cls =
    grub_register_command ("cls", grub_mini_cmd_cls,
                           0, "clear the screen");
+  cmd_clear =
+    grub_register_command ("clear", grub_mini_cmd_cls,
+                          0, "clear the screen");
}

GRUB_MOD_FINI(minicmd)
@@ -388,4 +391,5 @@
  grub_unregister_command (cmd_lsmod);
  grub_unregister_command (cmd_exit);
  grub_unregister_command (cmd_cls);
+  grub_unregister_command (cmd_clear);
}



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to