Hi!

> Because splashy by default doesn't show the printf statements, the user
> wouldn't know that he/she would have to push a button on splash.getchar.
> This adds a prompt to splash.getchar
> 
> Index: resume.c
> ===================================================================
> diff -u -r1.29 resume.c
> --- resume.c  14 Sep 2006 14:18:58 -0000      1.29
> +++ resume.c  16 Sep 2006 13:58:14 -0000
> @@ -669,9 +668,9 @@
>       if (!error) {
>               printf("resume: Image successfully loaded\n");
>       } else {
> -             printf("resume: Error %d loading the image\n"
> -                     "\nPress ENTER to continue", error);
> -             splash.getchar();
> +             sprintf(buffer, "resume: Error %d loading the image\n"
> +                     "\nPress ENTER to continue\n", error);
> +             splash.getchar(buffer);
>       }
>       return error;
>  }
> Index: splash.c
> ===================================================================
> diff -u -r1.3 splash.c
> --- splash.c  14 Sep 2006 14:22:00 -0000      1.3
> +++ splash.c  16 Sep 2006 13:58:14 -0000
> @@ -27,6 +27,11 @@
>  #ifndef CONFIG_ENCRYPT
>  static void splash_dummy_readpass (char *a, int b) { }
>  #endif
> +static int splash_getchar (const char *prompt) 
                            ~
                            \__ avoid this space, please

>       } else if (!splashy_open()) {
>               splash->finish      = splashy_finish;
>               splash->progress    = splashy_progress;
> -             splash->getchar     = splashy_getchar;
> +             splash->getchar     = splashy_get_char;

I'm not sure if this change is for the better...

> -void splashy_print(const char *str) {
> -     splashy_printline(str);
> +int splashy_get_char (const char *prompt) 
                       ~
                       \_ this one, too.

                                                        Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to