mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #1442 from lheckemann/master
Support receiving monospace
This commit is contained in:
commit
c06be88d8f
@ -1279,7 +1279,7 @@ static void get_mirc_color(const char **str, int *fg_ret, int *bg_ret)
|
|||||||
|
|
||||||
#define IS_COLOR_CODE(c) \
|
#define IS_COLOR_CODE(c) \
|
||||||
((c) == 2 || (c) == 3 || (c) == 4 || (c) == 6 || (c) == 7 || \
|
((c) == 2 || (c) == 3 || (c) == 4 || (c) == 6 || (c) == 7 || \
|
||||||
(c) == 15 || (c) == 22 || (c) == 27 || (c) == 29 || (c) == 31)
|
(c) == 15 || (c) == 17 || (c) == 22 || (c) == 27 || (c) == 29 || (c) == 31)
|
||||||
|
|
||||||
/* Return how many characters in `str' must be skipped before `len'
|
/* Return how many characters in `str' must be skipped before `len'
|
||||||
characters of text is skipped. */
|
characters of text is skipped. */
|
||||||
@ -1554,6 +1554,10 @@ void format_send_as_gui_flags(TEXT_DEST_REC *dest, const char *text, SIGNAL_FUNC
|
|||||||
bgcolor = -1;
|
bgcolor = -1;
|
||||||
flags &= GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_MONOSPACE;
|
flags &= GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_MONOSPACE;
|
||||||
break;
|
break;
|
||||||
|
case 17:
|
||||||
|
if (!hide_text_style)
|
||||||
|
flags ^= GUI_PRINT_FLAG_MONOSPACE;
|
||||||
|
break;
|
||||||
case 22:
|
case 22:
|
||||||
/* reverse */
|
/* reverse */
|
||||||
if (!hide_text_style)
|
if (!hide_text_style)
|
||||||
|
Loading…
Reference in New Issue
Block a user