[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] Alias cls as clear
From: |
Joe Auricchio |
Subject: |
[PATCH 2/2] Alias cls as clear |
Date: |
Wed, 22 Jul 2009 22:08:24 -0700 |
* 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);
}