degesch: make text attributes toggle formatting
Instead of just setting it on. Fixes bitlbee.
This commit is contained in:
parent
99ac971b66
commit
762aaffecf
16
degesch.c
16
degesch.c
|
@ -905,7 +905,7 @@ enum formatter_item_type
|
||||||
FORMATTER_ITEM_ATTR, ///< Formatting attributes
|
FORMATTER_ITEM_ATTR, ///< Formatting attributes
|
||||||
FORMATTER_ITEM_FG_COLOR, ///< Foreground color
|
FORMATTER_ITEM_FG_COLOR, ///< Foreground color
|
||||||
FORMATTER_ITEM_BG_COLOR, ///< Background color
|
FORMATTER_ITEM_BG_COLOR, ///< Background color
|
||||||
FORMATTER_ITEM_SIMPLE, ///< For mIRC formatting only so far
|
FORMATTER_ITEM_SIMPLE, ///< Toggle mIRC formatting
|
||||||
FORMATTER_ITEM_IGNORE_ATTR ///< Un/set attribute ignoration
|
FORMATTER_ITEM_IGNORE_ATTR ///< Un/set attribute ignoration
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2707,7 +2707,7 @@ formatter_flush_attr
|
||||||
state->want_background = -1;
|
state->want_background = -1;
|
||||||
return true;
|
return true;
|
||||||
case FORMATTER_ITEM_SIMPLE:
|
case FORMATTER_ITEM_SIMPLE:
|
||||||
state->want |= item->attribute;
|
state->want ^= item->attribute;
|
||||||
attribute_printer_update (state);
|
attribute_printer_update (state);
|
||||||
return true;
|
return true;
|
||||||
case FORMATTER_ITEM_FG_COLOR:
|
case FORMATTER_ITEM_FG_COLOR:
|
||||||
|
@ -9579,17 +9579,17 @@ static const char *g_first_time_help[] =
|
||||||
"",
|
"",
|
||||||
"\x02Welcome to degesch!",
|
"\x02Welcome to degesch!",
|
||||||
"",
|
"",
|
||||||
"To get a list of all commands, type \x02/help\x0f. To obtain",
|
"To get a list of all commands, type \x02/help\x02. To obtain",
|
||||||
"more information on a command or option, simply add it as",
|
"more information on a command or option, simply add it as",
|
||||||
"a parameter, e.g. \x02/help set\x0f or \x02/help behaviour.logging\x0f.",
|
"a parameter, e.g. \x02/help set\x02 or \x02/help behaviour.logging\x02.",
|
||||||
"",
|
"",
|
||||||
"To switch between buffers, press \x02"
|
"To switch between buffers, press \x02"
|
||||||
"F5/Ctrl-P\x0f or \x02" "F6/Ctrl-N\x0f.",
|
"F5/Ctrl-P\x02 or \x02" "F6/Ctrl-N\x02.",
|
||||||
"",
|
"",
|
||||||
"Finally, adding a network is as simple as:",
|
"Finally, adding a network is as simple as:",
|
||||||
" - \x02/server add freenode\x0f",
|
" - \x02/server add freenode\x02",
|
||||||
" - \x02/set servers.freenode.addresses = \"chat.freenode.net\"\x0f",
|
" - \x02/set servers.freenode.addresses = \"chat.freenode.net\"\x02",
|
||||||
" - \x02/connect freenode\x0f",
|
" - \x02/connect freenode\x02",
|
||||||
"",
|
"",
|
||||||
"That should be enough to get you started. Have fun!",
|
"That should be enough to get you started. Have fun!",
|
||||||
""
|
""
|
||||||
|
|
Loading…
Reference in New Issue