mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Initial implementation of 256 colour support for Irssi
This patch implements some 256 colour support for Irssi up from the previous 16 colours. Initial parsing of the %x/%X format codes is implemented and the parser accounts in advances the char* for that. The colour attributes are widened from 4 to 8 bit. The colour protocol is changed to a new format. Some pointers to remaining work are written in the comment in textbuffer.h. Note that Irssi already does support requesting 256 colours from the terminal in the original source code, so this part did not have to be touched.
This commit is contained in:
parent
2e6f16c0fa
commit
2d4edc5187
15 changed files with 437 additions and 105 deletions
|
|
@ -4,6 +4,12 @@
|
|||
#include "themes.h"
|
||||
#include "fe-windows.h"
|
||||
|
||||
/* various types of colour codings possible. */
|
||||
#define MIRC_BOLD_MARKER ('\002')
|
||||
#define MIRC_COLOR_MARKER ('\003')
|
||||
#define LINE_FORMAT_MARKER ('\004')
|
||||
|
||||
|
||||
#define GUI_PRINT_FLAG_BOLD 0x0001
|
||||
#define GUI_PRINT_FLAG_REVERSE 0x0002
|
||||
#define GUI_PRINT_FLAG_UNDERLINE 0x0004
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue