* [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* Re: [PATCH 2/2] Alias cls as clear
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:15 ` Robert Millan
0 siblings, 2 replies; 8+ messages in thread
From: Pavel Roskin @ 2009-07-23 22:42 UTC (permalink / raw)
To: The development of GRUB 2
On Wed, 2009-07-22 at 22:08 -0700, Joe Auricchio wrote:
> * 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?
Let's have "clear" only, as it's more clear :-)
Please include the ChangeLog entry.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Alias cls as clear
2009-07-23 22:42 ` Pavel Roskin
@ 2009-07-23 23:05 ` Joe Auricchio
2009-07-25 16:21 ` Robert Millan
2009-07-25 16:15 ` Robert Millan
1 sibling, 1 reply; 8+ messages in thread
From: Joe Auricchio @ 2009-07-23 23:05 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 526 bytes --]
On 23 Jul, 2009, at 15:42 , Pavel Roskin wrote:
> On Wed, 2009-07-22 at 22:08 -0700, Joe Auricchio wrote:
>> * 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?
>
> Let's have "clear" only, as it's more clear :-)
>
> Please include the ChangeLog entry.
How's this?
-joe
[-- Attachment #2: add_clear_command.patch --]
[-- Type: application/octet-stream, Size: 1550 bytes --]
Index: grub2/commands/minicmd.c
===================================================================
--- grub2.orig/commands/minicmd.c 2009-07-23 16:02:58.000000000 -0700
+++ grub2/commands/minicmd.c 2009-07-23 16:03:28.000000000 -0700
@@ -336,8 +336,19 @@
return 0;
}
+/* clear */
+static grub_err_t
+grub_mini_cmd_clear (struct grub_command *cmd __attribute__ ((unused)),
+ int argc __attribute__ ((unused)),
+ char *argv[] __attribute__ ((unused)))
+{
+ grub_cls ();
+ return 0;
+}
+
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_clear;
GRUB_MOD_INIT(minicmd)
{
@@ -362,6 +373,9 @@
cmd_exit =
grub_register_command ("exit", grub_mini_cmd_exit,
0, "exit from GRUB");
+ cmd_clear =
+ grub_register_command ("clear", grub_mini_cmd_clear,
+ 0, "clear the screen");
}
GRUB_MOD_FINI(minicmd)
@@ -373,4 +387,5 @@
grub_unregister_command (cmd_rmmod);
grub_unregister_command (cmd_lsmod);
grub_unregister_command (cmd_exit);
+ grub_unregister_command (cmd_clear);
}
Index: grub2/ChangeLog
===================================================================
--- grub2.orig/ChangeLog 2009-07-23 16:02:58.000000000 -0700
+++ grub2/ChangeLog 2009-07-23 16:03:17.000000000 -0700
@@ -1,3 +1,7 @@
+2009-07-23 Joe Auricchio <jauricchio@gmail.com>
+
+ * commands/minicmd.c: Add clear command.
+
2009-07-23 Pavel Roskin <proski@gnu.org>
* include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 2/2] Alias cls as clear
2009-07-23 23:05 ` Joe Auricchio
@ 2009-07-25 16:21 ` Robert Millan
2009-07-29 5:58 ` Joe Auricchio
0 siblings, 1 reply; 8+ messages in thread
From: Robert Millan @ 2009-07-25 16:21 UTC (permalink / raw)
To: The development of GRUB 2
On Thu, Jul 23, 2009 at 04:05:00PM -0700, Joe Auricchio wrote:
>
> On 23 Jul, 2009, at 15:42 , Pavel Roskin wrote:
>> On Wed, 2009-07-22 at 22:08 -0700, Joe Auricchio wrote:
>>> * 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?
>>
>> Let's have "clear" only, as it's more clear :-)
>>
>> Please include the ChangeLog entry.
>
>
> How's this?
The ChangeLog entry is incomplete. It should be e.g.:
* commands/minicmd.c (grub_mini_cmd_clear): New function.
etc. See other entries as an example.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Alias cls as clear
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
0 siblings, 2 replies; 8+ messages in thread
From: Joe Auricchio @ 2009-07-29 5:58 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 327 bytes --]
On 25 Jul, 2009, at 09:21 , Robert Millan wrote:
> On Thu, Jul 23, 2009 at 04:05:00PM -0700, Joe Auricchio wrote:
>>
>>
>> How's this?
>
> The ChangeLog entry is incomplete. It should be e.g.:
>
> * commands/minicmd.c (grub_mini_cmd_clear): New function.
>
> etc. See other entries as an example.
Updated patch attached.
[-- Attachment #2: add_clear_command.patch --]
[-- Type: application/octet-stream, Size: 1567 bytes --]
Index: grub2/commands/minicmd.c
===================================================================
--- grub2.orig/commands/minicmd.c 2009-07-23 16:02:58.000000000 -0700
+++ grub2/commands/minicmd.c 2009-07-23 16:03:28.000000000 -0700
@@ -336,8 +336,19 @@
return 0;
}
+/* clear */
+static grub_err_t
+grub_mini_cmd_clear (struct grub_command *cmd __attribute__ ((unused)),
+ int argc __attribute__ ((unused)),
+ char *argv[] __attribute__ ((unused)))
+{
+ grub_cls ();
+ return 0;
+}
+
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_clear;
GRUB_MOD_INIT(minicmd)
{
@@ -362,6 +373,9 @@
cmd_exit =
grub_register_command ("exit", grub_mini_cmd_exit,
0, "exit from GRUB");
+ cmd_clear =
+ grub_register_command ("clear", grub_mini_cmd_clear,
+ 0, "clear the screen");
}
GRUB_MOD_FINI(minicmd)
@@ -373,4 +387,5 @@
grub_unregister_command (cmd_rmmod);
grub_unregister_command (cmd_lsmod);
grub_unregister_command (cmd_exit);
+ grub_unregister_command (cmd_clear);
}
Index: grub2/ChangeLog
===================================================================
--- grub2.orig/ChangeLog 2009-07-23 16:02:58.000000000 -0700
+++ grub2/ChangeLog 2009-07-23 16:03:17.000000000 -0700
@@ -1,3 +1,7 @@
+2009-07-23 Joe Auricchio <jauricchio@gmail.com>
+
+ * commands/minicmd.c (grub_mini_cmd_clear): New function.
+
2009-07-23 Pavel Roskin <proski@gnu.org>
* include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 2/2] Alias cls as clear
2009-07-29 5:58 ` Joe Auricchio
@ 2009-07-31 15:57 ` Robert Millan
2009-11-19 10:42 ` Robert Millan
1 sibling, 0 replies; 8+ messages in thread
From: Robert Millan @ 2009-07-31 15:57 UTC (permalink / raw)
To: The development of GRUB 2
On Tue, Jul 28, 2009 at 10:58:55PM -0700, Joe Auricchio wrote:
>
> On 25 Jul, 2009, at 09:21 , Robert Millan wrote:
>> On Thu, Jul 23, 2009 at 04:05:00PM -0700, Joe Auricchio wrote:
>>>
>>>
>>> How's this?
>>
>> The ChangeLog entry is incomplete. It should be e.g.:
>>
>> * commands/minicmd.c (grub_mini_cmd_clear): New function.
>>
>> etc. See other entries as an example.
>
> Updated patch attached.
Hi,
The ChangeLog entry is incomplete, it should list the changes in
GRUB_MOD_INIT(minicmd) and GRUB_MOD_FINI(minicmd) too.
Btw, your mailer sends text attachments with Content-Type set to
application/octet-stream. Please could you adjust it so that it
sets it to the standard text/plain MIME type? Otherwise mail clients
may fail to recognize it as text, which makes context reply difficult.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Alias cls as clear
2009-07-29 5:58 ` Joe Auricchio
2009-07-31 15:57 ` Robert Millan
@ 2009-11-19 10:42 ` Robert Millan
1 sibling, 0 replies; 8+ messages in thread
From: Robert Millan @ 2009-11-19 10:42 UTC (permalink / raw)
To: The development of GRUB 2
Committed with some adjustments to ChangeLog.
On Tue, Jul 28, 2009 at 10:58:55PM -0700, Joe Auricchio wrote:
>
> On 25 Jul, 2009, at 09:21 , Robert Millan wrote:
>> On Thu, Jul 23, 2009 at 04:05:00PM -0700, Joe Auricchio wrote:
>>>
>>>
>>> How's this?
>>
>> The ChangeLog entry is incomplete. It should be e.g.:
>>
>> * commands/minicmd.c (grub_mini_cmd_clear): New function.
>>
>> etc. See other entries as an example.
>
> Updated patch attached.
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Alias cls as clear
2009-07-23 22:42 ` Pavel Roskin
2009-07-23 23:05 ` Joe Auricchio
@ 2009-07-25 16:15 ` Robert Millan
1 sibling, 0 replies; 8+ messages in thread
From: Robert Millan @ 2009-07-25 16:15 UTC (permalink / raw)
To: The development of GRUB 2
On Thu, Jul 23, 2009 at 06:42:11PM -0400, Pavel Roskin wrote:
> On Wed, 2009-07-22 at 22:08 -0700, Joe Auricchio wrote:
> > * 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?
>
> Let's have "clear" only, as it's more clear :-)
Yes. And GNU systems are our main target, so consistency with them is
usually preferrable.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ 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.