On Tue, Jun 12, 2007 at 01:57:11PM +0200, adrian15 wrote:
> Hi,
> 
>       I want to implement the pause command so that it is the same thing as
> the echo command with all of its options and also that it stops.
> 
>       My first approach which I could not compile because I do not how to 
>       add
> a new command to grub2 is the following one:
> 
> 
>   char key;
>   if (argc!=0)
>     grub_cmd_echo(state,argc,args);
>   key = grub_getkey ();
> 
>   return 0;
> 
> 
> 
> So my question is if it's an orthodox way of calling another command, if
> I should call it in another way or if I should not call it in any way.

I don't know how to call other commands, but in this case, maybe grub_printf()
will be good enough?

-- 
Robert Millan

My spam trap is [EMAIL PROTECTED]  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.


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

Reply via email to