diff options
author | James Booth <boothj5@gmail.com> | 2016-10-15 18:29:02 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-10-15 18:29:02 +0100 |
commit | 8f1d3ab55c6108333351698518325b6291226e07 (patch) | |
tree | 18caad39aae35578f4aff6f297e0f5aa71356f10 /src/plugins | |
parent | 3612270e90db7a824e7f818bb70c88021a1bc16a (diff) | |
download | profani-tty-8f1d3ab55c6108333351698518325b6291226e07.tar.gz |
Add win_print
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/api.c b/src/plugins/api.c index 606a4811..abec5300 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -85,7 +85,7 @@ api_cons_show_themed(const char *const group, const char *const key, const char char *parsed = str_replace(message, "\r\n", "\n"); theme_item_t themeitem = plugin_themes_get(group, key, def); ProfWin *console = wins_get_console(); - win_printf_line(console, themeitem, '-', "%s", parsed); + win_println(console, themeitem, '-', "%s", parsed); free(parsed); @@ -368,7 +368,7 @@ api_win_show(const char *tag, const char *line) } ProfWin *window = (ProfWin*)pluginwin; - win_printf_line(window, THEME_DEFAULT, '!', "%s", line); + win_println(window, THEME_DEFAULT, '!', "%s", line); return 1; } @@ -393,7 +393,7 @@ api_win_show_themed(const char *tag, const char *const group, const char *const theme_item_t themeitem = plugin_themes_get(group, key, def); ProfWin *window = (ProfWin*)pluginwin; - win_printf_line(window, themeitem, '!', "%s", line); + win_println(window, themeitem, '!', "%s", line); return 1; } |