-
Notifications
You must be signed in to change notification settings - Fork 0
/
ansi.htm
executable file
·378 lines (378 loc) · 23.7 KB
/
ansi.htm
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Jahara's MUME Page</title>
<STYLE TYPE="text/css">
<!--
a:text {font: 8pt/10pt verdana;text-decoration: none}
td { font-family: Verdana; font-size: 10px}
-->
</STYLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#666666" text="#000000" link="#333333" vlink="#333333" alink="#333333" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="183" bgcolor="#000000" align="left" valign="top" height="117"><img src="title_part1.jpg" width="183" height="117"></td>
<td width="207" bgcolor="#CCCCCC" align="left" valign="top" height="117">
<img src="title_part2.gif" width="207" height="117"></td>
<td width="100%" bgcolor="#CCCCCC" align="center" valign="middle" height="117">
<p> </p>
<p> </p>
<font color="#000000" size="1" face="Geneva, Arial, Helvetica, san-serif"><a href="index.htm">Home</a>
| <a href="stats.htm">Stat Generator</a> | <a href="strat.htm">Strategies</a>
| <a href="ansi.htm">ANSI Colour Help</a> | <a href="items.htm">Items List</a>
| <a href="download.htm">Downloads</a> | <a href="links.htm">Links</a></font></td>
<td width="24" bgcolor="#CCCCCC" align="right" valign="top" height="117"><img src="corner_topright.gif" width="24" height="19"></td>
</tr>
<tr>
<td width="183" bgcolor="#000000" align="left" valign="top" height="100%"><img src="cloaked.jpg" width="183" height="331"></td>
<td width="100%" bgcolor="#FFFFFF" colspan="3" align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<!-- MAIN PAGE STARTS HERE -->
<h2 align=left><FONT FACE="Times New Roman, Times, serif" SIZE="5">ANSI
Colour Help</FONT></h2>
<table width="100%" border=1 cellspacing=0 cellpadding=5 bordercolor="#CCCCCC">
<tr>
<td nowrap align=left valign=top><b>What is ANSI?</b></td>
<td align=left valign=top width="100%">
<div align="left">ANSI is a set of characters that a telnet
client can interperate as a colour, giving that it has support.
</div>
<p align="left"> ANSI is constructed out of 4 characters, the
only dynamic thing about it is the number; which tells it
which colour to use.</p>
<p align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"></font>
+ <font size="2">[</font> + <font size="2">number</font> +
<font size="2">m<br>
</font><i>Example:</i> [40m<br>
</p>
What the client does is replace this string of characters with
a colour. This makes the example above represent the colour
black! </td>
</tr>
<tr>
<td nowrap align=left valign=top><b>What is this ""?</b></td>
<td align=left valign=top>
<p>Being frank, this character is <esc>. Yes, the escape
key! </p>
<p>You might have noticed that this character is <i>not </i>a
normal character. This character in a text file means that
the escape key was inputted into the text file.</p>
<p> Other keys that can be inputed into a text file are backspace,
insert, and tab. By using a special program called an EMACS
editor<i> or</i> copying the character from some source, like
this webpage, you can get the <esc> character.</p>
<p>The EMACS editors allow you to enter sequences of ALL keys
(including escape), and is one way to get the character. A
far easier method for others would be to simply<i> select,
copy, and paste</i> the <font size="2"><font size="1"> into
whatever file once you need it from this webpage.</font></font></p>
<p>Remember <esc> <i>does not mean</i> the text <esc>!
It means the character that the escape key gives into a text
file.</p>
</td>
</tr>
<tr>
<td align=left valign=top><b>How do I correctly use ANSI?</b></td>
<td align=left valign=top>
<p>As stated above, the client interperates the ANSI colour
code as a colour. The client replaces the text with a colour.
This colour will continue to be used until another is specified.
An example is shown as follows:</p>
<p align="center"><font size="2"><font size="2" color="#000000"><tt></tt></font><font color="#000000"><tt>[31m
red,</tt></font><font size="2" color="#000000"><tt></tt></font><font color="#000000"><tt>[33m
yellow, yellow again, and</tt></font><font size="2" color="#000000"><tt></tt></font><font color="#000000"><tt>[31m
red</tt></font><font size="2" color="#000000"><tt>[0m</tt></font><font color="#000000"><tt><br>
</tt></font><tt><font color="#FF0000">red, </font><font color="#FFCC00">yellow,
yellow again, and </font><font color="#FF0000">red</font></tt></font></p>
<p> One rule that is important to follow is to not overlap the
same colour twice, this results in some clients being unable
to fully interperate the colours and results in colour errors.
Take a look at the example of my Half-Orc whois. It does not
overlap colours, it uses the same colour as long as it can
until it switches to another and it has <font size="2"><font size="2" color="#000000"><tt>[0m</tt></font><font color="#000000"><tt>
after each line</TT></font></font>.</p>
<p>Always end your text with [0m which disables ANSI and prevents
you from messing up a client!</p>
</td>
</tr>
<tr>
<td align=left valign=top><b>How do I put this into MUME?</b></td>
<td align=left valign=top>
<p>You need a client that supports local editing. Local editing
is a special transfering protocal that your client can use
to send the text to the MUME server, not all clients support
this.</p>
<p>Then you might have to (it matters with some clients) "change
editor mume" in MUME aswell as "#identify"
to set up your client and MUME to be able to do local editing.
In PowTTY you have to enable local editing on the last tab
in the options, or if you can't figure it out download Powtty
version 1.01 which has automatically enabled local editing
<a href="download/powtty101.zip">here</a>.</p>
<p> Now, when you try to change your whois, view mume-mail,
or post an idea the client will pop up another program, usually
being notepad. Within this progran you can paste/write what
you want to add. To send the file to mume you have to save
and then exit the text program. The client will automatically
read the file after it has been closed and send it to the
MUME server. Good luck!</p>
<p> <b>Some clients that <i><font size="2">SUPPORT</font></i>
local editing are Powwow, Cancan, CS2, and PowTTY.<br>
Zmud, JMC, and other clients that don't support local editing
<i><font size="2">CAN NOT</font></i> send ANSI to MUME.</b></p>
<p><FONT FACE="Georgia, Times New Roman, Times, serif" SIZE="2">Recommended
clients are...<br>
Windows: <a href="http://www.elvenrunes.com/powtty">PowTTY</a><br>
Unix: <a href="http://linuz.sns.it/%7Emax/powwow/">Powwow</a><br>
Mac: None present</FONT></p>
</td>
</tr>
</table>
<div align=left>
<p align=left> </p>
<p align=left>Here is an example of Jahara's Half-Orc WHOIS<br>
</p>
</div>
<table cellpadding=15 border=1 bordercolor="#CCCCCC" bgcolor="#FFFFFF" width=550 cellspacing=0>
<tr>
<td bgcolor="#FFFFFF" bordercolor="#CCCCCC" height="108"><font size="2"><font color="#000000"><tt>
</tt></font><font size="2" color="#000000"><tt>[32m</tt></font><font color="#000000"><tt>~-_
_-~</tt></font><font size="2" color="#000000"><tt>[0m</tt></font><font color="#000000"><br>
<tt>
[31m<[33mo[31m>
<[33mo[31m>[0m</tt><br>
<tt>
</tt></font><font size="2" color="#000000"><tt>[32m</tt></font><font color="#000000"><tt>\._./[0m</tt><br>
<br>
<tt>
</tt></font><font size="2" color="#000000"><tt>[37m</tt></font><font color="#000000"><tt>^
^</tt></font><font size="2" color="#000000"><tt>[0m</tt></font><font color="#000000"><br>
<tt>
</tt></font><font size="2" color="#000000"><tt>[37m</tt></font><font color="#000000"><tt>\</tt></font><font size="2" color="#000000"><tt>[0m</tt></font><font color="#000000"><br>
<tt>
==[32m<><><><>[37m===>>==========---------------</tt></font><font size="2" color="#000000"><tt>[0m</tt></font><font color="#000000"><br>
<tt>
</tt></font><font size="2" color="#000000"><tt>[37m</tt></font><font color="#000000"><tt>/[0m</tt></font></font></td>
</tr>
<tr>
<td bgcolor="#000000"><font size="2"><tt><font color="#FFFFFF">
</font><font color="#33FF33">~-_
_-~</font></tt><br>
<tt><font color="#FFFFFF"> </font><font color="#33FF33">
</font><font color="#FF0000"><</font><font color="#FFCC00">o</font><font color="#FF0000">>
<</font><font color="#FFCC00">o</font><font color="#FF0000">></font></tt><br>
<tt><font color="#FFFFFF"> </font><font color="#33FF33">
\._./</font></tt></font>
<p><font size="2"><tt><font color="#FFFFFF">
^ ^</font></tt><br>
<tt><font color="#FFFFFF">
\</font></tt><br>
<tt><font color="#FFFFFF">
==</font><font color="#33FF33"><><><><></font><font color="#FFFFFF">===>>==========---------------</font></tt><br>
<tt><font color="#FFFFFF">
/</font></tt></font>
</td>
</tr>
</table>
<table width="100%" bgcolor="#ffffff">
<tbody>
<tr>
<td align="left" valign="top">
<table width=175>
<tbody>
<tr>
<td nowrap><b><font color="#000000">Foreground Colors</font></b></td>
</tr>
<tr>
<td nowrap><font color=black> Black...</font></td>
<td valign=Top nowrap><font color="#000000"> [30m</font></td>
</tr>
<tr>
<td nowrap><font color="#990000"> Red.....</font></td>
<td nowrap><font color="#000000">[31m</font></td>
</tr>
<tr>
<td nowrap><font color="#006600"> Green...</font></td>
<td nowrap><font color="#000000">[32m</font></td>
</tr>
<tr>
<td nowrap><font color="#cc9933"> Yellow..</font></td>
<td nowrap><font color="#000000">[33m</font></td>
</tr>
<tr>
<td nowrap><font color="#000099"> Blue....</font></td>
<td nowrap><font color="#000000">[34m</font></td>
</tr>
<tr>
<td nowrap><font color="#993399"> Magenta.</font></td>
<td nowrap><font color="#000000">[35m</font></td>
</tr>
<tr>
<td nowrap><font color="#339999"> Cyan....</font></td>
<td nowrap><font color="#000000">[36m</font></td>
</tr>
<tr>
<td nowrap><font color="#c0c0c0">White...</font></td>
<td nowrap><font color="#000000">[37m</font></td>
</tr>
</tbody>
</table>
</td>
<td align="left" valign="top">
<table width=180>
<tbody>
<tr>
<td width=126 nowrap><b><font color="#000000">High Colors</font></b></td>
</tr>
<tr>
<td width="126" nowrap><font color="#000000">Black...</font></td>
<td width="42" nowrap><font color="#000000">[90m</font></td>
</tr>
<tr>
<td valign=Top width="126" nowrap><font color="#000000">
Red....</font></td>
<td width="42" nowrap><font color="#000000">[91m</font></td>
</tr>
<tr>
<td width="126" nowrap><font color="#000000">Green...</font></td>
<td width="42" nowrap><font color="#000000">[92m</font></td>
</tr>
<tr>
<td width="126" nowrap><font color="#000000">Yellow..</font></td>
<td width="42" nowrap><font color="#000000">[93m</font></td>
</tr>
<tr>
<td width="126" nowrap><font color="#000000">Blue....</font></td>
<td width="42" nowrap><font color="#000000">[94m</font></td>
</tr>
<tr>
<td width="126" nowrap><font color="#000000">Magenta.</font></td>
<td width="42" nowrap><font color="#000000">[95m</font></td>
</tr>
<tr>
<td width="126" nowrap><font color="#000000">Cyan....</font></td>
<td width="42" nowrap><font color="#000000">[96m</font></td>
</tr>
<tr>
<td width="126" nowrap><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">White...</font></td>
<td idth="42" nowrap><font color="#000000">[97m</font></td>
</tr>
</tbody>
</table>
</td>
<td align="left" valign="top">
<p>A general rule of thumb is to not use High Colours as they
aren't supported by all clients. The same effect can be also
achieved by placing a bold text style attribute before a colour.</p>
</td>
</tr>
<tr>
<td align="left" valign="top">
<table width=175>
<tbody>
<tr>
<td nowrap><font color="#000000"><b>Background Colors</b></font></td>
</tr>
<tr>
<td bgcolor="#000000" nowrap><font color="#FFFFFF"> Black...</font></td>
<td align=Left nowrap><font color="#000000"> [40m</font></td>
</tr>
<tr>
<td bgcolor="#990000" nowrap><font color="#FFFFFF"> Red.....</font></td>
<td align=Left nowrap><font color="#000000"> [41m</font></td>
</tr>
<tr>
<td bgcolor="#006600" nowrap><font color="#FFFFFF"> Green...</font></td>
<td align=Left nowrap><font color="#000000"> [42m</font></td>
</tr>
<tr>
<td bgcolor="#cc9933" nowrap><font color="#000000"> Yellow..</font></td>
<td align=Left nowrap><font color="#000000"> [43m</font></td>
</tr>
<tr>
<td bgcolor="#000099" nowrap><font color="#FFFFFF"> Blue....</font></td>
<td align=Left nowrap><font color="#000000"> [44m</font></td>
</tr>
<tr>
<td bgcolor="#993399" nowrap><font color="#FFFFFF"> Magenta.</font></td>
<td align=Left nowrap><font color="#000000"> [45m</font></td>
</tr>
<tr>
<td bgcolor="#339999" nowrap><font color="#000000"> Cyan....</font></td>
<td align=Left nowrap><font color="#000000"> [46m</font></td>
</tr>
<tr>
<td bgcolor="#c0c0c0" nowrap><font color="#000000"> White...</font></td>
<td align=Left nowrap><font color="#000000"> [47m</font></td>
</tr>
</tbody>
</table>
</td>
<td valign=top align="left">
<table width=175>
<tbody>
<tr>
<td nowrap><font color="#000000"><b>Text Style Attributes</b></font></td>
</tr>
<tr>
<td bgcolor="#ffffff" nowrap><font color="#333333">Bold........</font></td>
<td align=Left nowrap><font color="#000000"> [1m</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" nowrap><u><font color="#000000">
Underline...</font></u></td>
<td align=Left nowrap><font color="#000000"> [4m</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" nowrap><font color="#000000"><blink>
Blink.......</blink></font></td>
<td align=Left nowrap><font color="#000000"> [5m</font></td>
</tr>
<tr>
<td bgcolor="#000000" nowrap><font color="#ffffff"> Inverse.....</font></td>
<td align=Left nowrap><font color="#000000"> [7m</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" nowrap><S><font color="#000000">
Strikethough</font></S></td>
<td align=Left nowrap><font color="#000000"> [8m</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" nowrap><font color="#000000"> Ansi
off....</font></td>
<td align=Left nowrap><font color="#000000"> [0m</font></td>
</tr>
</tbody>
</table>
</td>
<td align="left" valign="top">
<p>Bold makes the colour lighter, not the text bigger.</p>
</td>
</tr>
</tbody>
</table>
<!-- MAIN PAGE ENDS HERE -->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="183" bgcolor="#000000" align="left" height="19" valign="bottom"> </td>
<td width="34%" colspan="2" bgcolor="#FFFFFF" height="19" align="left" valign="middle"></td>
<td width="24" valign="bottom" bgcolor="#FFFFFF" height="19" align="right"></td>
</tr>
<tr>
<td width="183" bgcolor="#000000" align="left" height="19" valign="bottom"><img src="corner_botleft.gif" width="24" height="19" align="bottom"></td>
<td width="34%" colspan="2" bgcolor="#FFFFFF" height="19" align="left" valign="middle">
<p> </p>
</td>
<td width="24" valign="bottom" bgcolor="#FFFFFF" height="19" align="right"><img src="corner_botright.gif" width="24" height="19" align="bottom"></td>
</tr>
</table>
</body>
</html>