grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / prefs / input / misc.c
blobba99a02131e7f80d89eee810e76e2a6843c9339d
1 /*
2 Copyright © 2003-2010, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/types.h>
8 #include <proto/dos.h>
9 #include <proto/intuition.h>
11 #include <stdio.h>
13 #include "misc.h"
15 void ShowMessage(CONST_STRPTR msg)
17 struct EasyStruct es;
19 if (msg)
21 if (IntuitionBase)
23 es.es_StructSize = sizeof(es);
24 es.es_Flags = 0;
25 es.es_Title = (CONST_STRPTR) "Input";
26 es.es_TextFormat = (CONST_STRPTR) msg;
27 es.es_GadgetFormat = "OK";
29 EasyRequestArgs(NULL, &es, NULL, NULL); /* win=NULL -> wb screen */
31 else
33 printf("Input: %s\n", msg);