30 const char *featured_text)
33 struct text_tag_list *tags;
46 text_tag_list_prepend(tags, ptag);
49 "Failed to create a color text tag (fg = %s, bg = %s).",
50 (
nullptr !=
color.foreground ?
color.foreground :
"nullptr"),
51 (
nullptr !=
color.background ?
color.background :
"nullptr"));
56 text_tag_list_destroy(tags);
68 fc_vsnprintf(featured_text,
sizeof(featured_text), format, args);
80 va_start(args, format);
89 const struct text_tag_list *tags)
size_t featured_text_to_plain_text(const char *featured_text, char *plain_text, size_t plain_text_len, struct text_tag_list **tags, bool replace_link_text)
Separate the text from the text features.
struct text_tag * text_tag_new(enum text_tag_type tag_type, ft_offset_t start_offset, ft_offset_t stop_offset,...)
Returns a new text_tag or nullptr on error.
const struct ft_color ftc_any
static bool ft_color_requested(const struct ft_color color)
void luaconsole_vprintf(const struct ft_color color, const char *format, va_list args)
Add a line of text to the output ("chatline") window.
void luaconsole_event(const char *plain_text, const struct text_tag_list *tags)
Add a line of text to the output ("chatline") window from server event.
void luaconsole_append(const struct ft_color color, const char *featured_text)
Add a line of text to the output ("chatline") window, like puts() would do it in the console.
void luaconsole_printf(const struct ft_color color, const char *format,...)
Add a line of text to the output ("chatline") window.
void luaconsole_welcome_message()
Standard welcome message.
void real_luaconsole_append(const char *astring, const struct text_tag_list *tags)
Appends the string to the chat output window.
struct text_tag::@23::@25 color
int fc_vsnprintf(char *str, size_t n, const char *format, va_list ap)