summaryrefslogtreecommitdiff
path: root/src/gui/gui-chat.h
AgeCommit message (Collapse)Author
2023-04-19core: render newline characters in chat line messagesTrygve Aaberge
If a chat line message contains a newline character (\n) it was previously rendered as J with reverse video. This commit makes it render as an actual newline instead, so messages with multiple lines become supported. The rendering is fixed in normal mode as well as bare mode both when scrolled to the bottom and when scrolled up (which is different code paths). Focus events has also been updated to support this (except for _chat_line_y which returns -1 for all lines, but the docs says this variable is only for buffers with free content). Currently, the only way to include a \n in a chat line message is with hdata_update because printf splits on \n and creates multiple separate lines, but hopefully either printf can be changed to not split on \n, or a new command which doesn't split can be added.
2023-01-01core: update copyright datesSébastien Helleu
2022-12-10core: do not display non printable chars, fix function utf8_char_size_screenSébastien Helleu
Now the function utf8_char_size_screen can return -1 when the char is not printable. It has a specific behavior for some chars: - U+0009: value of option weechat.look.tab_width - U+0001 to U+001F (except U+0009): 1 - U+00AD (soft hyphen): -1 - U+200B (zero width space): -1
2022-01-30core: add support of date and tags in messages displayed in buffers with ↵Sébastien Helleu
free content, add function printf_y_date_tags (closes #1746)
2022-01-28core: move functions from gui-chat.c to gui-line.cSébastien Helleu
Functions moved and renamed: - gui_chat_build_string_prefix_message -> gui_line_build_string_prefix_message - gui_chat_build_string_message_tags -> gui_line_build_string_message_tags
2022-01-17core: update copyright datesSébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-09-21core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}Sébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-08-12api: add function hook_lineSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-11-04core: add missing includes of stdio.hSébastien Helleu
2017-08-10core: remove value for first #define in headers, add "PLUGIN" in plugin headersSébastien Helleu
2017-06-03gui, buflist: remove declared but undefined functionsSimmo Saan
2017-01-13tests: fix compilation of tests on FreeBSD 11Sébastien Helleu
Some includes were missing in .h files, and the tests must be linked with intl and execinfo on FreeBSD.
2017-01-01core: update copyright datesSébastien Helleu
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-07-04core: fix type of value returned by functions gui_chat_string_next_char, ↵Sébastien Helleu
gui_chat_string_add_offset and gui_chat_string_add_offset_screen
2015-01-01core: update copyright datesSébastien Helleu
2014-03-19core: fix use of reserved C identifiers in headers (closes #31)Sebastien Helleu
2014-01-01core: update copyright datesSebastien Helleu
2013-12-11core: fix text emphasis with wide chars on screen like japanese (patch ↵Sebastien Helleu
#8253) (patch from Ryuunosuke Ayanokouzi)
2013-11-09core: display lines waiting for buffer on exit (in case of early exit)Sebastien Helleu
2013-08-16core: add text emphasis in messages when searching text in bufferSebastien Helleu
New options: - weechat.look.emphasized_attributes - weechat.color.emphasized - weechat.color.emphasized_bg
2013-07-27core: use default value for prefixes used in messages displayed before the ↵Sebastien Helleu
interface is initialized
2013-01-01core: update copyright datesSebastien Helleu
2012-06-09core: add options to use different color for offline nicks in prefix (patch ↵Sebastien Helleu
from Nei) (task #11109) New options: - weechat.look.color_nick_offline: boolean to enable feature (off by default) - weechat.color.chat_nick_offline: color for offline nicks (displayed in prefix)
2012-04-11core: fix display bugs and crashs with small windows (bug #36107)Sebastien Helleu
2012-01-08core: update copyright datesSebastien Helleu
2011-10-26core: remove unneeded whitespaceSebastien Helleu
2011-10-07core: bufferize lines displayed before core buffer is created, to display ↵Sebastien Helleu
them in buffer when it is created
2011-09-22core: add colors for inactive windows and lines (in merged buffers)Sebastien Helleu
New boolean options to control use of inactive colors: - weechat.look.color_inactive_message - weechat.look.color_inactive_prefix - weechat.look.color_inactive_prefix_buffer - weechat.look.color_inactive_time New "inactive" color options: - weechat.color.chat_inactive_line - weechat.color.chat_inactive_window - weechat.color.chat_prefix_buffer_inactive_line
2011-08-14core: return info about line/word for chat area in focus hashtable, add keys ↵Sebastien Helleu
m/q/Q to quote line in cursor mode, sort mouse keys by priority
2011-06-13core: add option "tags" for command /debugSebastien Helleu
2011-01-01Update copyright datesSebastien Helleu
2010-12-07Add color support in option weechat.look.buffer_time_formatSebastien Helleu
2010-10-09Use local buffer in print functions, so that they are reentrantSebastien Helleu
2010-08-06Fix display bug with special chars (ascii value below 32) (bug #30602)Sebastien Helleu
2010-06-25Update comments after #endif in C headersSebastien Helleu
2010-06-22Update licenses and copyrights, add missing author names in sourcesSebastien Helleu
2010-03-29Free some extra memory when exiting WeeChatSebastien Helleu
2010-02-09Rename command /silence to /muteSebastien Helleu
2010-02-09Add new command /silenceSebastien Helleu
2010-01-03Update copyright datesSebastien Helleu
2009-06-10Add buffer merging feature, with /buffer merge/unmerge (task #7404)Sebastien Helleu
2009-01-04Remove unused functions and prototypesSebastien Helleu
2009-01-03Update copyright datesSebastien Helleu