Add win_print

This commit is contained in:
James Booth
2016-10-15 18:29:02 +01:00
parent 3612270e90
commit 8f1d3ab55c
15 changed files with 378 additions and 347 deletions

View File

@@ -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;
}