summaryrefslogtreecommitdiff
path: root/modules/stdio/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/stdio/stdio.c')
-rw-r--r--modules/stdio/stdio.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/stdio/stdio.c b/modules/stdio/stdio.c
index 244dc01..3121322 100644
--- a/modules/stdio/stdio.c
+++ b/modules/stdio/stdio.c
@@ -150,8 +150,15 @@ static int ui_alloc(struct ui_st **stp)
}
+static int output_handler(const char *str)
+{
+ return print_handler(str, str_len(str), NULL);
+}
+
+
static struct ui ui_stdio = {
- .name = "stdio"
+ .name = "stdio",
+ .outputh = output_handler
};