File: swirc.theme.5

package info (click to toggle)
swirc 3.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,872 kB
  • sloc: ansic: 18,094; cpp: 17,518; sh: 960; python: 254; makefile: 102; javascript: 20
file content (244 lines) | stat: -rw-r--r-- 7,832 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
.\" -*- mode: nroff; -*-
.\"
.\" SPDX-FileCopyrightText: Copyright 2023-2024 Markus Uhlin
.\" SPDX-License-Identifier: ISC
.\"
.Dd March 11, 2024
.Dt SWIRC.THEME 5
.Os
.Sh NAME
.Nm swirc.theme
.Nd how to write themes for swirc
.Sh DESCRIPTION
This manual page is the ultimate reference to consult when writing
themes to
.Xr swirc 1 .
.Sh TEXT DECORATION
.Bl -column "          " "Hex" "Octal" "Appearance" -offset indent
.It Sy "What" Ta Sy "Hex" Ta Sy "Octal" Ta Sy "Appearance"
.It "Blink" Ta "1d" Ta "035" Ta "^]"
.It "Bold" Ta "02" Ta "002" Ta "^B"
.It "Color" Ta "03" Ta "003" Ta "^C"
.It "Normal" Ta "0f" Ta "017" Ta "^O"
.It "Reverse" Ta "16" Ta "026" Ta "^V"
.It "Underline" Ta "1f" Ta "037" Ta "^_"
.El
.Pp
Example usage:
.Bd -literal -offset indent -compact
blabla ^Bbold text^B blabla
blabla ^Vreversed text^V blabla
blabla ^_underlined text^_ blabla
.Ed
.Pp
Always use the
.Em literal
control characters because else it won't work!
.Pp
Blink is a no operation because it's annoying.
.Sh COLORS
.Bl -column "Number" "          " "" -offset indent
.It Sy "Number" Ta Sy "Name" Ta Sy ""
.It "00" Ta "white" Ta ""
.It "01" Ta "black" Ta ""
.It "02" Ta "blue" Ta "(navy)"
.It "03" Ta "green" Ta ""
.It "04" Ta "red" Ta ""
.It "05" Ta "brown" Ta "(maroon)"
.It "06" Ta "purple" Ta ""
.It "07" Ta "orange" Ta "(olive)"
.It "08" Ta "yellow" Ta ""
.It "09" Ta "lt.green" Ta "(lime)"
.It "10" Ta "teal" Ta "(a kinda green/blue cyan)"
.It "11" Ta "lt.cyan" Ta "(cyan ?) (aqua)"
.It "12" Ta "lt.blue" Ta "(royal)"
.It "13" Ta "pink" Ta "(light purple) (fuchsia)"
.It "14" Ta "grey" Ta ""
.It "15" Ta "lt.grey" Ta "(silver)"
.El
.Pp
For the colors 16-99 see the output of the command
.Sy "/colormap" .
Enough color pairs must've been initialized.
(193 color pairs are too few for the colors 16-99 to be used as
backgrounds.)
.Pp
The syntax of the color attribute in text has the format ^CN[,M].
N will be the text (foreground) color and M the background color.
A background color (M) is optional and is not always included.
.Pp
N and M can maximally be two digits long.
Although the colors
.Brq 0,1,2,...,9
are supported you are highly encouraged to use
.Brq 00,01,02,...,09 .
.Pp
A plain ^C can be used to turn the color effect off.
While typing ^O will make sure ALL the text effects gets reset.
For example:
.Bd -literal -offset indent -compact
blabla ^C05,02red text on blue background^C blabla
blabla ^C09green text^O blabla
.Ed
.Pp
Of course settings can start with colored text and a closing ^C is not
essential.
.Sh SETTING TYPES
See
.Xr swirc.conf 5 .
.Sh SETTINGS
.Bl -tag -width Ds
.\" ----------------------------------------
.\" TERM BACKGROUND
.\" ----------------------------------------
.It Sy term_background Pq Em int
Which background color (0-15) is this theme written for?
.Bd -literal -offset indent -compact
0 = white
1 = black
.Ed
.\" ----------------------------------------
.\" TERM ENABLE COLORS
.\" ----------------------------------------
.It Sy term_enable_colors Pq Em bool
Enable colors (yes/no)?
.\" ----------------------------------------
.\" TERM USE DEFAULT COLORS
.\" ----------------------------------------
.It Sy term_use_default_colors Pq Em bool
Use terminal's default colors?
I.e. call
.Xr use_default_colors 3 .
.\" ----------------------------------------
.\" COLOR3 / COLOR4
.\" ----------------------------------------
.It Sy color3 , color4 Pq Em string
Colors used in uncategorized contexts.
Must begin with ^C.
.\" ----------------------------------------
.\" GFX FAILURE/SUCCESS/WARNING
.\" ----------------------------------------
.It Sy gfx_failure , gfx_success , gfx_warning Pq Em string
Used in contexts where to flag failures, successes and warnings
respectively.
.\" ----------------------------------------
.\" LEFT/RIGHT-BRACKET
.\" ----------------------------------------
.It Sy left_bracket , right_bracket Pq Em string
Left and right bracket.
Frequently used.
.\" ----------------------------------------
.\" LOGO COLOR
.\" ----------------------------------------
.It Sy logo_color Pq Em string
Swirc ASCII logo color displayed at startup.
(Must begin with ^C.)
.\" ----------------------------------------
.\" NICK S1/S2
.\" ----------------------------------------
.It Sy nick_s1 , nick_s2 Pq Em string
When you or another user types something the nickname will be enclosed
by s1 and s2.
.\" ----------------------------------------
.\" NICKLIST ...
.\" ----------------------------------------
.It Sy nicklist_my_nick_color , nicklist_nick_color , nicklist_privilege_color , nicklist_vline_color Pq Em int
Nicklist decoration.
All of these settings are of type
.Em int
(0-99) thus ^C is not needed and should not be used.
.\" ----------------------------------------
.\" NOTICE COLOR1/COLOR2
.\" ----------------------------------------
.It Sy notice_color1 , notice_color2 Pq Em string
Notice colors.
^C should be used.
.\" ----------------------------------------
.\" NOTICE LB/RB/SEP
.\" ----------------------------------------
.It Sy notice_lb , notice_rb , notice_sep Pq Em string
Notice left/right bracket and separator
.\" ----------------------------------------
.\" NOTICE INNER B1/B2
.\" ----------------------------------------
.It Sy notice_inner_b1 , notice_inner_b2 Pq Em string
Notice inner bracket 1 and 2.
(I.e. left and right.)
.\" ----------------------------------------
.\" PRIMARY/SECONDARY COLOR
.\" ----------------------------------------
.It Sy primary_color , secondary_color Pq Em string
Primary and secondary color for the theme.
Frequently used.
(Begin with ^C.)
.\" ----------------------------------------
.\" SLOGAN
.\" ----------------------------------------
.It Sy slogan Pq Em string
Swirc slogan displayed in the statusbar.
.\" ----------------------------------------
.\" SPECIFIER 1,2,3
.\" ----------------------------------------
.It Sy specifier1 , specifier2 , specifier3 Pq Em string
Specifiers used in various contexts.
Number 1 is frequently used.
.\" ----------------------------------------
.\" STATUSBAR BG/FG
.\" ----------------------------------------
.It Sy statusbar_bg , statusbar_fg Pq Em string
Statusbar background and foreground.
Valid values are
.Sy black , red , green , yellow , blue , magenta , cyan , white .
.\" ----------------------------------------
.\" STATUSBAR LB/RB/SPEC
.\" ----------------------------------------
.It Sy statusbar_leftBracket , statusbar_rightBracket , statusbar_spec Pq Em string
Statusbar left/right bracket and specifier.
.\" ----------------------------------------
.\" TIME FORMAT
.\" ----------------------------------------
.It Sy time_format Pq Em string
Time format passed to
.Xr strftime 3 .
.\" ----------------------------------------
.\" TITLEBAR BG/FG
.\" ----------------------------------------
.It Sy titlebar_bg , titlebar_fg Pq Em string
Titlebar background and foreground.
Valid values are
.Sy black , red , green , yellow , blue , magenta , cyan , white .
.\" ----------------------------------------
.\" WHOIS ...
.\" ----------------------------------------
.It Sy whois_acc Pq Em string
.It Sy whois_away Pq Em string
.It Sy whois_bot Pq Em string
.It Sy whois_cert Pq Em string
.It Sy whois_channels Pq Em string
.It Sy whois_conn Pq Em string
.It Sy whois_host Pq Em string
.It Sy whois_idle Pq Em string
.It Sy whois_ircName Pq Em string
.It Sy whois_ircOp Pq Em string
.It Sy whois_modes Pq Em string
.It Sy whois_server Pq Em string
.It Sy whois_service Pq Em string
.It Sy whois_ssl Pq Em string
.El
.Sh FILES
.Bl -tag -width "                         " -compact
.It Pa ~/.swirc/default.thm
default theme
.El
.Sh SEE ALSO
.Xr swirc 1 , Xr swirc.conf 5
.Sh AUTHORS
This manual page was written by
.An Markus Uhlin
.Aq Mt markus@nifty-networks.net
.Sh CAVEATS
If you want to give color to
.Em numbers
be sure to use
.Em two
digits for N nor M!