diff options
Diffstat (limited to 'choice.c')
-rw-r--r-- | choice.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/choice.c b/choice.c new file mode 100644 index 0000000..4e7576d --- /dev/null +++ b/choice.c @@ -0,0 +1,18 @@ +#include "choice.h" +#include "dialog.h" + +void choice_begin(const char *s) +{ + dialog_set("\nG"); + for (int i = 0; s[i] != '\0'; i++) { + dialog_set((char[]){ s[i], '\0' }); + if (s[i + 1] != '\0') + dialog_set("D/G"); + } + dialog_set("\nR> W"); +} + +char choice_result(void) +{ + return '\0'; +} |