Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
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-03-21 18:11:21 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
b13db0305d
api: fix type of value returned by function strcasestr
2015-07-03 19:45:51 +02:00
Sébastien Helleu
0f333ee630
api: add support of full color option name in function color()
2015-04-26 10:29:22 +02:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
9935b336ed
core: move main() function into Curses GUI
2014-07-14 20:03:39 +02:00
Sebastien Helleu
03f73b8cdc
core: skip and ignore color attributes before special names like "reset" in gui_color_get_custom
2014-03-25 15:36:21 +01:00
Sebastien Helleu
6749ed354d
core: add decoding of bright ANSI colors (90-97, 100-107)
2014-03-15 12:09:31 +01:00
Sebastien Helleu
e38f437ad7
core: add modifier and infos to decode ANSI colors
...
New modifier:
- color_decode_ansi: convert ANSI colors to WeeChat colors (or remove colors).
New infos:
- color_ansi_regex: regex used to parse ANSI colors in a string
- color_term2rgb: convert a terminal color (0-255) to RGB
- color_rgb2term: convert a RGB color to terminal color (0-255)
2014-03-15 11:06:30 +01:00
Sebastien Helleu
a97bcd1ca1
core: add functions to convert RGB to terminal color (and vice versa)
2014-03-14 19:16:13 +01:00
Sebastien Helleu
0110f81e88
core: fix potential NULL pointer in function gui_color_emphasize
2014-02-22 12:07:43 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
95adb3a04b
core: fix text emphasis with wide chars on screen like japanese (patch #8253 ) (patch from Ryuunosuke Ayanokouzi)
2013-12-11 12:48:32 +01:00
Sebastien Helleu
600ee3ddf3
core: add search of regular expression in buffer, don't reset search type on a new search, select where to search (messages/prefixes)
...
Key changed in search context:
- ctrl+"r": switch search type: string/regex
New keys in search context:
- alt+"c": case (in)sensitive search
- tab: search in messages/prefixes/both
2013-08-17 11:51:50 +02:00
Sebastien Helleu
c624960336
core: add text emphasis in messages when searching text in buffer
...
New options:
- weechat.look.emphasized_attributes
- weechat.color.emphasized
- weechat.color.emphasized_bg
2013-08-16 16:16:37 +02:00
Sebastien Helleu
72c1af25e0
core: set "callback_free_value" directly in hashtable without calling function hashtable_set_pointer
2013-08-09 22:54:06 +02:00
Sebastien Helleu
8ca36552ea
core: change color format for options from ${xxx} to ${color:xxx}
...
Options affected:
- weechat.look.buffer_time_format
- weechat.look.prefix_action
- weechat.look.prefix_error
- weechat.look.prefix_join
- weechat.look.prefix_network
- weechat.look.prefix_quit
2013-08-04 12:18:47 +02:00
Sebastien Helleu
25eaec3864
core: use size of 32 for hashtables (instead of 4, 8 or 16)
...
A size of 32 will use a little more memory but will reduce collisions in key
hashs, and then length of linked lists inside hash structure (faster search in
hashtable).
2013-01-26 19:26:43 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +01:00
Sebastien Helleu
47e4a03be6
core: update copyright dates
2012-01-08 18:59:50 +01:00
Sebastien Helleu
dfdf42e27b
core: remove unneeded whitespace
2011-10-26 20:37:03 +02:00
Sebastien Helleu
ac7c27949b
core: add color attribute "|" and value "resetcolor" for function weechat_color in plugin API (bug #34550 )
2011-10-15 13:54:53 +02:00
Sebastien Helleu
f843f904bc
core: fix bugs with calls to realloc
2011-08-28 15:25:30 +02:00
Sebastien Helleu
e0781f0390
core: add mouse support (task #5435 ), free cursor movement, hook_focus, fix bugs with key "^" (bug #32072 , bug #21381 ), fix bugs with bar windows, completion and /buffer
...
New features and bugs fixed:
- mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse"
- free movement of cursor: new command /cursor, new key context "cursor"
- new hook_focus (used by cursor and mouse)
- info "cursor_mode"
- bugs fixed with key "^"
- allow plugin name in /buffer name
- fix bugs with bar windows: do not create bar windows for hidden bars
- fix completion bug when two words for completion are equal but with different case
- automatic scroll direction in /bar scroll (x/y is now optional)
2011-07-26 18:50:29 +02:00
Sebastien Helleu
b4ccd82a9d
Replace char "/" by ":" to specify background in nick colors
2011-02-22 19:33:44 +01:00
Sebastien Helleu
65a609e33e
Add attributes for colors ("*": bold, "%": reverse, "_": underline)
2011-02-17 14:51:21 +01:00
Sebastien Helleu
d8248f3f68
Rename some color constants and functions for attributes
2011-02-09 16:26:58 +01:00
Sebastien Helleu
9da63c7170
Rename constants GUI_COLOR_PAIR_xxx to GUI_COLOR_EXTENDED_xxx
2011-02-06 18:18:13 +01:00
Sebastien Helleu
ccb08945a1
Dynamically allocate color pairs
...
This commit introduces major changes in 256 colors support:
- extended colors can be used without being added with command "/color add"
- background color is now allowed for nick colors (using slash separator)
2011-01-31 19:03:30 +01:00
Sebastien Helleu
a341d809b2
Fix crash when changing or removing color palette options
2011-01-03 14:41:14 +01:00
Sebastien Helleu
ce1aac77e0
Free color palette structures when exiting WeeChat
2011-01-02 16:34:47 +01:00
Sebastien Helleu
d24f6e9e17
Update copyright dates
2011-01-01 18:06:29 +01:00
Sebastien Helleu
0721bb1d4c
Add new command /color
2011-01-01 14:39:12 +01:00
Sebastien Helleu
e17e5a9614
Fix removal of color pair number in a string (function gui_color_decode)
2010-12-20 11:42:26 +01:00
Sebastien Helleu
cd7a02bec5
Add 256 colors support
...
Changes:
- new section "palette" in weechat.conf
- new API functions: list_search_pos and list_casesearch_pos
2010-12-20 10:13:37 +01:00
Sebastien Helleu
4043ca3d38
Allow use of color pair number in color options and in API function "weechat_color"
2010-12-17 09:54:46 +01:00
Sebastien Helleu
b6662ee3cf
Add color support in option weechat.look.buffer_time_format
2010-12-07 19:43:19 +01:00
Sebastien Helleu
90c99339b4
Return empty string in API function weechat_color when color is unknown
2010-10-29 23:21:57 +02:00
Sebastien Helleu
46fdee19b0
Fix bug with replacement char in API function string_remove_color (bug #30296 )
2010-07-07 15:44:02 +02:00
Sebastien Helleu
6562d676fe
Update licenses and copyrights, add missing author names in sources
2010-06-22 19:46:28 +02:00
Sebastien Helleu
31bfcf96c7
Reformat and add comments for description of C sources
2010-04-08 18:15:00 +02:00
Sebastien Helleu
eabf21098d
Fix display of color in input when it is scrolled
2010-02-24 22:54:07 +01:00
Sebastien Helleu
2133eb30ff
Update copyright dates
2010-01-03 19:31:55 +01:00
Sebastien Helleu
6cc9ce8777
Fix color string returned by API function color() for some WeeChat color options
2010-01-01 12:29:14 +01:00
Sebastien Helleu
a394ed5d6f
Add "replacement" argument for string_remove_color in plugin API
2009-03-18 18:02:48 +01:00
Sebastien Helleu
997434ef8b
Fix bug with text attribute in IRC messages: toggle attribute instead of always forcing it to on (bug #25770 )
2009-03-07 00:18:19 +01:00
Sebastien Helleu
a253398165
Fix color decoding function
2009-02-08 19:49:56 +01:00