1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

%N does now same as %n, except in .theme files it always does the

terminal default color while %n sets the "previous color".


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1150 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-28 03:41:17 +00:00 committed by cras
parent 3c607672e6
commit f382abee30
3 changed files with 8 additions and 6 deletions

View File

@ -42,7 +42,8 @@
# if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
# print yellow "foo" (as set with %Y) but "bar" would be green, which was
# set at the beginning before the {foo} template. If there wasn't the %g
# at start, the normal behaviour of %n would occur.
# at start, the normal behaviour of %n would occur. If you _really_ want
# to use the terminal's default color, use %N.
#############################################################################
@ -135,7 +136,7 @@ abstracts = {
# public message in channel, $0 = nick mode, $1 = nick
pubmsgnick = "{msgnick $0 $1-}";
pubnick = "%w$0-%n";
pubnick = "%N$0-%n";
# public message in channel meant for me, $0 = nick mode, $1 = nick
pubmsgmenick = "{msgnick $0 $1-}";

View File

@ -12,7 +12,7 @@
%p %P magenta (think: purple)
%c %C %6 cyan bold cyan cyan
%w %W %7 white bold white white
%n Turn off all colors and other formatting
%n %N Turn off all colors and other formatting
%U Underline on/off
%8 Reverse on/off
%9 %_ Bold on/off
@ -20,6 +20,9 @@
%| Marks the indentation position
%% A single %
In .theme files %n works a bit differently. See default.theme
for more information.
MIRC colors that you can use when writing text to channel and with
hilighting text:

View File

@ -94,10 +94,8 @@ int format_expand_styles(GString *out, char format, TEXT_DEST_REC *dest)
case 'F':
/* flashing - ignore */
break;
case 'N':
/* don't put clear-color tag at the end of the output - ignore */
break;
case 'n':
case 'N':
/* default color */
g_string_append_c(out, 4);
g_string_append_c(out, FORMAT_STYLE_DEFAULTS);