From: Erwan Velu Date: Sun, 27 May 2012 09:46:54 +0000 (+0200) Subject: hdt: Adding say command X-Git-Tag: syslinux-4.06-pre12~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30abec4d70d34875b0ca312d62eed5e264f9050d;p=platform%2Fupstream%2Fsyslinux.git hdt: Adding say command This command is just for displaing a message to the cli during a defined period of time. Syntax is like the following : say `my message`% An example : say `This is my text message to display during 5 seconds`%5 --- diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c index 555237e..f7f7e94 100644 --- a/com32/hdt/hdt-cli-hdt.c +++ b/com32/hdt/hdt-cli-hdt.c @@ -259,6 +259,61 @@ static void do_dump(int argc __unused, char **argv __unused, dump(hardware); } +/** + * do_say - say message to user + **/ +static void do_say(int argc , char **argv , + struct s_hardware *hardware) +{ + (void) hardware; + if (argc == 0) return; + + char text_to_say[255]={0}; + int arg=0; + int sleep_time=0; +#if DEBUG + for (int i=0; i