diff options
author | Alfred E. Heggestad <aeh@db.org> | 2015-06-24 19:00:33 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2015-06-24 19:00:33 +0200 |
commit | 664121d4d6c35583646ddf401db0a868aba3dd43 (patch) | |
tree | d71b20654f193117a9a89c008ceec4c3de3be6a1 /modules/wincons | |
parent | 0dba5a39fc79fba064f1d7180a5eb6539a68c2b5 (diff) |
wincons: add output-handler, thanks to ggcoding for the patch
Diffstat (limited to 'modules/wincons')
-rw-r--r-- | modules/wincons/wincons.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/wincons/wincons.c b/modules/wincons/wincons.c index 0ab7153..2e743bc 100644 --- a/modules/wincons/wincons.c +++ b/modules/wincons/wincons.c @@ -161,8 +161,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_wincons = { - .name = "wincons" + .name = "wincons", + .outputh = output_handler }; |