All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] Alias cls as clear
@ 2009-07-23  5:08 Joe Auricchio
  2009-07-23 22:42 ` Pavel Roskin
  0 siblings, 1 reply; 8+ messages in thread
From: Joe Auricchio @ 2009-07-23  5:08 UTC (permalink / raw)
  To: The development of GRUB 2

* 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);
}




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-11-19 10:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-23  5:08 [PATCH 2/2] Alias cls as clear Joe Auricchio
2009-07-23 22:42 ` Pavel Roskin
2009-07-23 23:05   ` Joe Auricchio
2009-07-25 16:21     ` Robert Millan
2009-07-29  5:58       ` Joe Auricchio
2009-07-31 15:57         ` Robert Millan
2009-11-19 10:42         ` Robert Millan
2009-07-25 16:15   ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.