ansi 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.index +77 -0
- data/DEMO.md +451 -0
- data/{HISTORY.rdoc → HISTORY.md} +35 -15
- data/LICENSE.txt +23 -0
- data/NOTICE.md +170 -0
- data/{README.rdoc → README.md} +34 -30
- data/demo/01_ansicode.md +65 -0
- data/demo/{02_core.rdoc → 02_core.md} +4 -4
- data/demo/03_logger.md +30 -0
- data/demo/04_progressbar.md +62 -0
- data/demo/{05_mixin.rdoc → 05_mixin.md} +11 -11
- data/demo/{06_string.rdoc → 06_string.md} +18 -18
- data/demo/07_columns.md +89 -0
- data/demo/08_table.md +28 -0
- data/demo/09_diff.md +47 -0
- data/demo/10_bbcode.md +24 -0
- data/demo/11_terminal.md +8 -0
- data/lib/ansi.yml +57 -43
- data/lib/ansi/chart.rb +12 -10
- data/lib/ansi/code.rb +78 -82
- data/lib/ansi/columns.rb +0 -1
- data/lib/ansi/terminal.rb +1 -1
- data/lib/ansi/terminal/curses.rb +1 -2
- data/lib/ansi/terminal/stty.rb +2 -2
- data/test/case_ansicode.rb +29 -17
- data/test/case_mixin.rb +18 -12
- data/test/case_progressbar.rb +11 -9
- metadata +90 -53
- data/.ruby +0 -63
- data/COPYING.rdoc +0 -612
- data/Config.rb +0 -13
- data/DEMO.rdoc +0 -455
- data/demo/01_ansicode.rdoc +0 -49
- data/demo/03_logger.rdoc +0 -31
- data/demo/04_progressbar.rdoc +0 -63
- data/demo/07_columns.rdoc +0 -90
- data/demo/08_table.rdoc +0 -28
- data/demo/09_diff.rdoc +0 -47
- data/demo/10_bbcode.rdoc +0 -24
- data/demo/11_terminal.rdoc +0 -8
data/COPYING.rdoc
DELETED
@@ -1,612 +0,0 @@
|
|
1
|
-
= COPYRIGHT
|
2
|
-
|
3
|
-
== NOTICES
|
4
|
-
|
5
|
-
=== ANSI
|
6
|
-
|
7
|
-
Copyright:: (c) 2009 {Rubyworks}[http://rubyworks.github.com]
|
8
|
-
License:: {BSD-2-Clause}[http://spdx.org/licenses/BSD-2-Clause]
|
9
|
-
Website:: http://rubyworks.github.com/ansi
|
10
|
-
|
11
|
-
Copyright 2009 Rubyworks.
|
12
|
-
|
13
|
-
All rights reserved.
|
14
|
-
|
15
|
-
Redistribution and use in source and binary forms, with or without modification, are
|
16
|
-
permitted provided that the following conditions are met:
|
17
|
-
|
18
|
-
1. Redistributions of source code must retain the above copyright notice, this list of
|
19
|
-
conditions and the following disclaimer.
|
20
|
-
|
21
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list
|
22
|
-
of conditions and the following disclaimer in the documentation and/or other materials
|
23
|
-
provided with the distribution.
|
24
|
-
|
25
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
26
|
-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
27
|
-
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
|
28
|
-
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
29
|
-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
30
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
31
|
-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
32
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
33
|
-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
-
|
35
|
-
(http://spdx.org/licenses/BSD-2-Clause)
|
36
|
-
|
37
|
-
|
38
|
-
=== ProgressBar
|
39
|
-
|
40
|
-
Copyright:: (c) 2001 Satoru Takabayashi
|
41
|
-
License:: {Ruby}[http://spdx.org/licenses/Ruby]
|
42
|
-
Website:: http://0xcc.net/ruby-progressbar
|
43
|
-
|
44
|
-
ProgressBar class is based on the original ProgressBar by Satoru Takabayashi.
|
45
|
-
|
46
|
-
Ruby/ProgressBar - a text progress bar library
|
47
|
-
|
48
|
-
Copyright (C) 2001-2005 Satoru Takabayashi <satoru@namazu.org>
|
49
|
-
All rights reserved.
|
50
|
-
This is free software with ABSOLUTELY NO WARRANTY.
|
51
|
-
|
52
|
-
You can redistribute it and/or modify it under the terms
|
53
|
-
of Ruby's license.
|
54
|
-
|
55
|
-
|
56
|
-
=== HighLine (Terminal Extensions)
|
57
|
-
|
58
|
-
Copyright:: (c) 2006 Gray Productions
|
59
|
-
License:: {Ruby}[http://spdx.org/licenses/Ruby]
|
60
|
-
Website:: http://highline.rubyforge.org
|
61
|
-
|
62
|
-
The terminal extensions are based on HighLine's SystemExtensions
|
63
|
-
by James Edward Gray II.
|
64
|
-
|
65
|
-
Copyright 2006 Gray Productions
|
66
|
-
|
67
|
-
Distributed under the user's choice of the {GPL Version 2}[http://www.gnu.org/licenses/old-licenses/gpl-2.0.html]
|
68
|
-
(see GPL-2.0.txt for details) or the {Ruby software license}[http://www.ruby-lang.org/en/LICENSE.txt]
|
69
|
-
by James Edward Gray II and Greg Brown.
|
70
|
-
|
71
|
-
Please email James[mailto:james@grayproductions.net] with any questions.
|
72
|
-
|
73
|
-
|
74
|
-
== BBCode
|
75
|
-
|
76
|
-
Copyright:: (c) 2002 Thomas-Ivo Heinen
|
77
|
-
License:: {Ruby}[http://spdx.org/licenses/Ruby]
|
78
|
-
|
79
|
-
BBCode module is a derivative of BBCode by Thomas-Ivo Heinen.
|
80
|
-
|
81
|
-
Copyright (c) 2002 Thomas-Ivo Heinen
|
82
|
-
|
83
|
-
This module is free software. You may use, modify, and/or redistribute this
|
84
|
-
software under the same terms as Ruby.
|
85
|
-
|
86
|
-
This program is distributed in the hope that it will be useful, but WITHOUT
|
87
|
-
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
88
|
-
FOR A PARTICULAR PURPOSE.
|
89
|
-
|
90
|
-
|
91
|
-
== Rainbow (XTerm Color Support)
|
92
|
-
|
93
|
-
Copyright:: (c) Marcin Kulik
|
94
|
-
License:: {MIT}[http://spdx.org/licenses/MIT]
|
95
|
-
Website:: http://github.com/sickill/rainbow
|
96
|
-
|
97
|
-
Rainbox provided the bases for building the XTerm 256 color code
|
98
|
-
support into the ANSI::Code module.
|
99
|
-
|
100
|
-
Copyright (c) Marcin Kulik
|
101
|
-
|
102
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
103
|
-
a copy of this software and associated documentation files (the
|
104
|
-
"Software"), to deal in the Software without restriction, including
|
105
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
106
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
107
|
-
permit persons to whom the Software is furnished to do so, subject to
|
108
|
-
the following conditions:
|
109
|
-
|
110
|
-
The above copyright notice and this permission notice shall be
|
111
|
-
included in all copies or substantial portions of the Software.
|
112
|
-
|
113
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
114
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
115
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
116
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
117
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
118
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
119
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
120
|
-
|
121
|
-
|
122
|
-
=== Paint
|
123
|
-
|
124
|
-
Copyright:: (c) 2011 Jan Lelis
|
125
|
-
License:: {MIT}[http://spdx.org/licenses/MIT]
|
126
|
-
Website:: https://github.com/janlelis/paint
|
127
|
-
|
128
|
-
Some of the latest ANSI code names, and inspiration to check out Rainbow
|
129
|
-
and include XTerm 256 color codes, came from Paint.
|
130
|
-
|
131
|
-
Copyright (c) 2011 Jan Lelis
|
132
|
-
|
133
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
134
|
-
a copy of this software and associated documentation files (the
|
135
|
-
"Software"), to deal in the Software without restriction, including
|
136
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
137
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
138
|
-
permit persons to whom the Software is furnished to do so, subject to
|
139
|
-
the following conditions:
|
140
|
-
|
141
|
-
The above copyright notice and this permission notice shall be
|
142
|
-
included in all copies or substantial portions of the Software.
|
143
|
-
|
144
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
145
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
146
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
147
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
148
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
149
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
150
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
151
|
-
|
152
|
-
|
153
|
-
=== ANSIColor
|
154
|
-
|
155
|
-
Copyright:: (c) 2002 Florian Frank
|
156
|
-
Website:: http://flori.github.com/term-ansicolor
|
157
|
-
|
158
|
-
Albeit the code no long bares much if any resemblance to it, the ANSI Code
|
159
|
-
module (and subsequently the Constants module) originated with the
|
160
|
-
ANSIColor library by Florian Frank.
|
161
|
-
|
162
|
-
|
163
|
-
== LICENSES
|
164
|
-
|
165
|
-
=== BSD 2-Clause License
|
166
|
-
|
167
|
-
Redistribution and use in source and binary forms, with or without modification, are
|
168
|
-
permitted provided that the following conditions are met:
|
169
|
-
|
170
|
-
1. Redistributions of source code must retain the above copyright notice, this list of
|
171
|
-
conditions and the following disclaimer.
|
172
|
-
|
173
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list
|
174
|
-
of conditions and the following disclaimer in the documentation and/or other materials
|
175
|
-
provided with the distribution.
|
176
|
-
|
177
|
-
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
178
|
-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
179
|
-
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
180
|
-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
181
|
-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
182
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
183
|
-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
184
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
185
|
-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
186
|
-
|
187
|
-
|
188
|
-
=== MIT License
|
189
|
-
|
190
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
191
|
-
a copy of this software and associated documentation files (the
|
192
|
-
"Software"), to deal in the Software without restriction, including
|
193
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
194
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
195
|
-
permit persons to whom the Software is furnished to do so, subject to
|
196
|
-
the following conditions:
|
197
|
-
|
198
|
-
The above copyright notice and this permission notice shall be
|
199
|
-
included in all copies or substantial portions of the Software.
|
200
|
-
|
201
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
202
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
203
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
204
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
205
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
206
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
207
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
208
|
-
|
209
|
-
|
210
|
-
=== Ruby License
|
211
|
-
|
212
|
-
Ruby is copyrighted free software by <COPYRIGHT HOLDER>.
|
213
|
-
You can redistribute it and/or modify it under either the terms of the GPL
|
214
|
-
(see COPYING.txt file), or the conditions below:
|
215
|
-
|
216
|
-
1. You may make and give away verbatim copies of the source form of the
|
217
|
-
software without restriction, provided that you duplicate all of the
|
218
|
-
original copyright notices and associated disclaimers.
|
219
|
-
|
220
|
-
2. You may modify your copy of the software in any way, provided that
|
221
|
-
you do at least ONE of the following:
|
222
|
-
|
223
|
-
a) place your modifications in the Public Domain or otherwise
|
224
|
-
make them Freely Available, such as by posting said
|
225
|
-
modifications to Usenet or an equivalent medium, or by allowing
|
226
|
-
the author to include your modifications in the software.
|
227
|
-
|
228
|
-
b) use the modified software only within your corporation or
|
229
|
-
organization.
|
230
|
-
|
231
|
-
c) rename any non-standard executables so the names do not conflict
|
232
|
-
with standard executables, which must also be provided.
|
233
|
-
|
234
|
-
d) make other distribution arrangements with the author.
|
235
|
-
|
236
|
-
3. You may distribute the software in object code or executable
|
237
|
-
form, provided that you do at least ONE of the following:
|
238
|
-
|
239
|
-
a) distribute the executables and library files of the software,
|
240
|
-
together with instructions (in the manual page or equivalent)
|
241
|
-
on where to get the original distribution.
|
242
|
-
|
243
|
-
b) accompany the distribution with the machine-readable source of
|
244
|
-
the software.
|
245
|
-
|
246
|
-
c) give non-standard executables non-standard names, with
|
247
|
-
instructions on where to get the original software distribution.
|
248
|
-
|
249
|
-
d) make other distribution arrangements with the author.
|
250
|
-
|
251
|
-
4. You may modify and include the part of the software into any other
|
252
|
-
software (possibly commercial). But some files in the distribution
|
253
|
-
are not written by the author, so that they are not under this terms.
|
254
|
-
|
255
|
-
They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
|
256
|
-
files under the ./missing directory. See each file for the copying
|
257
|
-
condition.
|
258
|
-
|
259
|
-
5. The scripts and library files supplied as input to or produced as
|
260
|
-
output from the software do not automatically fall under the
|
261
|
-
copyright of the software, but belong to whomever generated them,
|
262
|
-
and may be sold commercially, and may be aggregated with this
|
263
|
-
software.
|
264
|
-
|
265
|
-
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
266
|
-
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
267
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
268
|
-
PURPOSE.
|
269
|
-
|
270
|
-
|
271
|
-
=== GPL 2 License
|
272
|
-
|
273
|
-
GNU GENERAL PUBLIC LICENSE
|
274
|
-
Version 2, June 1991
|
275
|
-
|
276
|
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
277
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
278
|
-
Everyone is permitted to copy and distribute verbatim copies
|
279
|
-
of this license document, but changing it is not allowed.
|
280
|
-
|
281
|
-
Preamble
|
282
|
-
|
283
|
-
The licenses for most software are designed to take away your
|
284
|
-
freedom to share and change it. By contrast, the GNU General Public
|
285
|
-
License is intended to guarantee your freedom to share and change free
|
286
|
-
software--to make sure the software is free for all its users. This
|
287
|
-
General Public License applies to most of the Free Software
|
288
|
-
Foundation's software and to any other program whose authors commit to
|
289
|
-
using it. (Some other Free Software Foundation software is covered by
|
290
|
-
the GNU Lesser General Public License instead.) You can apply it to
|
291
|
-
your programs, too.
|
292
|
-
|
293
|
-
When we speak of free software, we are referring to freedom, not
|
294
|
-
price. Our General Public Licenses are designed to make sure that you
|
295
|
-
have the freedom to distribute copies of free software (and charge for
|
296
|
-
this service if you wish), that you receive source code or can get it
|
297
|
-
if you want it, that you can change the software or use pieces of it
|
298
|
-
in new free programs; and that you know you can do these things.
|
299
|
-
|
300
|
-
To protect your rights, we need to make restrictions that forbid
|
301
|
-
anyone to deny you these rights or to ask you to surrender the rights.
|
302
|
-
These restrictions translate to certain responsibilities for you if you
|
303
|
-
distribute copies of the software, or if you modify it.
|
304
|
-
|
305
|
-
For example, if you distribute copies of such a program, whether
|
306
|
-
gratis or for a fee, you must give the recipients all the rights that
|
307
|
-
you have. You must make sure that they, too, receive or can get the
|
308
|
-
source code. And you must show them these terms so they know their
|
309
|
-
rights.
|
310
|
-
|
311
|
-
We protect your rights with two steps: (1) copyright the software, and
|
312
|
-
(2) offer you this license which gives you legal permission to copy,
|
313
|
-
distribute and/or modify the software.
|
314
|
-
|
315
|
-
Also, for each author's protection and ours, we want to make certain
|
316
|
-
that everyone understands that there is no warranty for this free
|
317
|
-
software. If the software is modified by someone else and passed on, we
|
318
|
-
want its recipients to know that what they have is not the original, so
|
319
|
-
that any problems introduced by others will not reflect on the original
|
320
|
-
authors' reputations.
|
321
|
-
|
322
|
-
Finally, any free program is threatened constantly by software
|
323
|
-
patents. We wish to avoid the danger that redistributors of a free
|
324
|
-
program will individually obtain patent licenses, in effect making the
|
325
|
-
program proprietary. To prevent this, we have made it clear that any
|
326
|
-
patent must be licensed for everyone's free use or not licensed at all.
|
327
|
-
|
328
|
-
The precise terms and conditions for copying, distribution and
|
329
|
-
modification follow.
|
330
|
-
|
331
|
-
GNU GENERAL PUBLIC LICENSE
|
332
|
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
333
|
-
|
334
|
-
0. This License applies to any program or other work which contains
|
335
|
-
a notice placed by the copyright holder saying it may be distributed
|
336
|
-
under the terms of this General Public License. The "Program", below,
|
337
|
-
refers to any such program or work, and a "work based on the Program"
|
338
|
-
means either the Program or any derivative work under copyright law:
|
339
|
-
that is to say, a work containing the Program or a portion of it,
|
340
|
-
either verbatim or with modifications and/or translated into another
|
341
|
-
language. (Hereinafter, translation is included without limitation in
|
342
|
-
the term "modification".) Each licensee is addressed as "you".
|
343
|
-
|
344
|
-
Activities other than copying, distribution and modification are not
|
345
|
-
covered by this License; they are outside its scope. The act of
|
346
|
-
running the Program is not restricted, and the output from the Program
|
347
|
-
is covered only if its contents constitute a work based on the
|
348
|
-
Program (independent of having been made by running the Program).
|
349
|
-
Whether that is true depends on what the Program does.
|
350
|
-
|
351
|
-
1. You may copy and distribute verbatim copies of the Program's
|
352
|
-
source code as you receive it, in any medium, provided that you
|
353
|
-
conspicuously and appropriately publish on each copy an appropriate
|
354
|
-
copyright notice and disclaimer of warranty; keep intact all the
|
355
|
-
notices that refer to this License and to the absence of any warranty;
|
356
|
-
and give any other recipients of the Program a copy of this License
|
357
|
-
along with the Program.
|
358
|
-
|
359
|
-
You may charge a fee for the physical act of transferring a copy, and
|
360
|
-
you may at your option offer warranty protection in exchange for a fee.
|
361
|
-
|
362
|
-
2. You may modify your copy or copies of the Program or any portion
|
363
|
-
of it, thus forming a work based on the Program, and copy and
|
364
|
-
distribute such modifications or work under the terms of Section 1
|
365
|
-
above, provided that you also meet all of these conditions:
|
366
|
-
|
367
|
-
a) You must cause the modified files to carry prominent notices
|
368
|
-
stating that you changed the files and the date of any change.
|
369
|
-
|
370
|
-
b) You must cause any work that you distribute or publish, that in
|
371
|
-
whole or in part contains or is derived from the Program or any
|
372
|
-
part thereof, to be licensed as a whole at no charge to all third
|
373
|
-
parties under the terms of this License.
|
374
|
-
|
375
|
-
c) If the modified program normally reads commands interactively
|
376
|
-
when run, you must cause it, when started running for such
|
377
|
-
interactive use in the most ordinary way, to print or display an
|
378
|
-
announcement including an appropriate copyright notice and a
|
379
|
-
notice that there is no warranty (or else, saying that you provide
|
380
|
-
a warranty) and that users may redistribute the program under
|
381
|
-
these conditions, and telling the user how to view a copy of this
|
382
|
-
License. (Exception: if the Program itself is interactive but
|
383
|
-
does not normally print such an announcement, your work based on
|
384
|
-
the Program is not required to print an announcement.)
|
385
|
-
|
386
|
-
These requirements apply to the modified work as a whole. If
|
387
|
-
identifiable sections of that work are not derived from the Program,
|
388
|
-
and can be reasonably considered independent and separate works in
|
389
|
-
themselves, then this License, and its terms, do not apply to those
|
390
|
-
sections when you distribute them as separate works. But when you
|
391
|
-
distribute the same sections as part of a whole which is a work based
|
392
|
-
on the Program, the distribution of the whole must be on the terms of
|
393
|
-
this License, whose permissions for other licensees extend to the
|
394
|
-
entire whole, and thus to each and every part regardless of who wrote it.
|
395
|
-
|
396
|
-
Thus, it is not the intent of this section to claim rights or contest
|
397
|
-
your rights to work written entirely by you; rather, the intent is to
|
398
|
-
exercise the right to control the distribution of derivative or
|
399
|
-
collective works based on the Program.
|
400
|
-
|
401
|
-
In addition, mere aggregation of another work not based on the Program
|
402
|
-
with the Program (or with a work based on the Program) on a volume of
|
403
|
-
a storage or distribution medium does not bring the other work under
|
404
|
-
the scope of this License.
|
405
|
-
|
406
|
-
3. You may copy and distribute the Program (or a work based on it,
|
407
|
-
under Section 2) in object code or executable form under the terms of
|
408
|
-
Sections 1 and 2 above provided that you also do one of the following:
|
409
|
-
|
410
|
-
a) Accompany it with the complete corresponding machine-readable
|
411
|
-
source code, which must be distributed under the terms of Sections
|
412
|
-
1 and 2 above on a medium customarily used for software interchange; or,
|
413
|
-
|
414
|
-
b) Accompany it with a written offer, valid for at least three
|
415
|
-
years, to give any third party, for a charge no more than your
|
416
|
-
cost of physically performing source distribution, a complete
|
417
|
-
machine-readable copy of the corresponding source code, to be
|
418
|
-
distributed under the terms of Sections 1 and 2 above on a medium
|
419
|
-
customarily used for software interchange; or,
|
420
|
-
|
421
|
-
c) Accompany it with the information you received as to the offer
|
422
|
-
to distribute corresponding source code. (This alternative is
|
423
|
-
allowed only for noncommercial distribution and only if you
|
424
|
-
received the program in object code or executable form with such
|
425
|
-
an offer, in accord with Subsection b above.)
|
426
|
-
|
427
|
-
The source code for a work means the preferred form of the work for
|
428
|
-
making modifications to it. For an executable work, complete source
|
429
|
-
code means all the source code for all modules it contains, plus any
|
430
|
-
associated interface definition files, plus the scripts used to
|
431
|
-
control compilation and installation of the executable. However, as a
|
432
|
-
special exception, the source code distributed need not include
|
433
|
-
anything that is normally distributed (in either source or binary
|
434
|
-
form) with the major components (compiler, kernel, and so on) of the
|
435
|
-
operating system on which the executable runs, unless that component
|
436
|
-
itself accompanies the executable.
|
437
|
-
|
438
|
-
If distribution of executable or object code is made by offering
|
439
|
-
access to copy from a designated place, then offering equivalent
|
440
|
-
access to copy the source code from the same place counts as
|
441
|
-
distribution of the source code, even though third parties are not
|
442
|
-
compelled to copy the source along with the object code.
|
443
|
-
|
444
|
-
4. You may not copy, modify, sublicense, or distribute the Program
|
445
|
-
except as expressly provided under this License. Any attempt
|
446
|
-
otherwise to copy, modify, sublicense or distribute the Program is
|
447
|
-
void, and will automatically terminate your rights under this License.
|
448
|
-
However, parties who have received copies, or rights, from you under
|
449
|
-
this License will not have their licenses terminated so long as such
|
450
|
-
parties remain in full compliance.
|
451
|
-
|
452
|
-
5. You are not required to accept this License, since you have not
|
453
|
-
signed it. However, nothing else grants you permission to modify or
|
454
|
-
distribute the Program or its derivative works. These actions are
|
455
|
-
prohibited by law if you do not accept this License. Therefore, by
|
456
|
-
modifying or distributing the Program (or any work based on the
|
457
|
-
Program), you indicate your acceptance of this License to do so, and
|
458
|
-
all its terms and conditions for copying, distributing or modifying
|
459
|
-
the Program or works based on it.
|
460
|
-
|
461
|
-
6. Each time you redistribute the Program (or any work based on the
|
462
|
-
Program), the recipient automatically receives a license from the
|
463
|
-
original licensor to copy, distribute or modify the Program subject to
|
464
|
-
these terms and conditions. You may not impose any further
|
465
|
-
restrictions on the recipients' exercise of the rights granted herein.
|
466
|
-
You are not responsible for enforcing compliance by third parties to
|
467
|
-
this License.
|
468
|
-
|
469
|
-
7. If, as a consequence of a court judgment or allegation of patent
|
470
|
-
infringement or for any other reason (not limited to patent issues),
|
471
|
-
conditions are imposed on you (whether by court order, agreement or
|
472
|
-
otherwise) that contradict the conditions of this License, they do not
|
473
|
-
excuse you from the conditions of this License. If you cannot
|
474
|
-
distribute so as to satisfy simultaneously your obligations under this
|
475
|
-
License and any other pertinent obligations, then as a consequence you
|
476
|
-
may not distribute the Program at all. For example, if a patent
|
477
|
-
license would not permit royalty-free redistribution of the Program by
|
478
|
-
all those who receive copies directly or indirectly through you, then
|
479
|
-
the only way you could satisfy both it and this License would be to
|
480
|
-
refrain entirely from distribution of the Program.
|
481
|
-
|
482
|
-
If any portion of this section is held invalid or unenforceable under
|
483
|
-
any particular circumstance, the balance of the section is intended to
|
484
|
-
apply and the section as a whole is intended to apply in other
|
485
|
-
circumstances.
|
486
|
-
|
487
|
-
It is not the purpose of this section to induce you to infringe any
|
488
|
-
patents or other property right claims or to contest validity of any
|
489
|
-
such claims; this section has the sole purpose of protecting the
|
490
|
-
integrity of the free software distribution system, which is
|
491
|
-
implemented by public license practices. Many people have made
|
492
|
-
generous contributions to the wide range of software distributed
|
493
|
-
through that system in reliance on consistent application of that
|
494
|
-
system; it is up to the author/donor to decide if he or she is willing
|
495
|
-
to distribute software through any other system and a licensee cannot
|
496
|
-
impose that choice.
|
497
|
-
|
498
|
-
This section is intended to make thoroughly clear what is believed to
|
499
|
-
be a consequence of the rest of this License.
|
500
|
-
|
501
|
-
8. If the distribution and/or use of the Program is restricted in
|
502
|
-
certain countries either by patents or by copyrighted interfaces, the
|
503
|
-
original copyright holder who places the Program under this License
|
504
|
-
may add an explicit geographical distribution limitation excluding
|
505
|
-
those countries, so that distribution is permitted only in or among
|
506
|
-
countries not thus excluded. In such case, this License incorporates
|
507
|
-
the limitation as if written in the body of this License.
|
508
|
-
|
509
|
-
9. The Free Software Foundation may publish revised and/or new versions
|
510
|
-
of the General Public License from time to time. Such new versions will
|
511
|
-
be similar in spirit to the present version, but may differ in detail to
|
512
|
-
address new problems or concerns.
|
513
|
-
|
514
|
-
Each version is given a distinguishing version number. If the Program
|
515
|
-
specifies a version number of this License which applies to it and "any
|
516
|
-
later version", you have the option of following the terms and conditions
|
517
|
-
either of that version or of any later version published by the Free
|
518
|
-
Software Foundation. If the Program does not specify a version number of
|
519
|
-
this License, you may choose any version ever published by the Free Software
|
520
|
-
Foundation.
|
521
|
-
|
522
|
-
10. If you wish to incorporate parts of the Program into other free
|
523
|
-
programs whose distribution conditions are different, write to the author
|
524
|
-
to ask for permission. For software which is copyrighted by the Free
|
525
|
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
526
|
-
make exceptions for this. Our decision will be guided by the two goals
|
527
|
-
of preserving the free status of all derivatives of our free software and
|
528
|
-
of promoting the sharing and reuse of software generally.
|
529
|
-
|
530
|
-
NO WARRANTY
|
531
|
-
|
532
|
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
533
|
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
534
|
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
535
|
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
536
|
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
537
|
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
538
|
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
539
|
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
540
|
-
REPAIR OR CORRECTION.
|
541
|
-
|
542
|
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
543
|
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
544
|
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
545
|
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
546
|
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
547
|
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
548
|
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
549
|
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
550
|
-
POSSIBILITY OF SUCH DAMAGES.
|
551
|
-
|
552
|
-
END OF TERMS AND CONDITIONS
|
553
|
-
|
554
|
-
How to Apply These Terms to Your New Programs
|
555
|
-
|
556
|
-
If you develop a new program, and you want it to be of the greatest
|
557
|
-
possible use to the public, the best way to achieve this is to make it
|
558
|
-
free software which everyone can redistribute and change under these terms.
|
559
|
-
|
560
|
-
To do so, attach the following notices to the program. It is safest
|
561
|
-
to attach them to the start of each source file to most effectively
|
562
|
-
convey the exclusion of warranty; and each file should have at least
|
563
|
-
the "copyright" line and a pointer to where the full notice is found.
|
564
|
-
|
565
|
-
<one line to give the program's name and a brief idea of what it does.>
|
566
|
-
Copyright (C) <year> <name of author>
|
567
|
-
|
568
|
-
This program is free software; you can redistribute it and/or modify
|
569
|
-
it under the terms of the GNU General Public License as published by
|
570
|
-
the Free Software Foundation; either version 2 of the License, or
|
571
|
-
(at your option) any later version.
|
572
|
-
|
573
|
-
This program is distributed in the hope that it will be useful,
|
574
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
575
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
576
|
-
GNU General Public License for more details.
|
577
|
-
|
578
|
-
You should have received a copy of the GNU General Public License along
|
579
|
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
580
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
581
|
-
|
582
|
-
Also add information on how to contact you by electronic and paper mail.
|
583
|
-
|
584
|
-
If the program is interactive, make it output a short notice like this
|
585
|
-
when it starts in an interactive mode:
|
586
|
-
|
587
|
-
Gnomovision version 69, Copyright (C) year name of author
|
588
|
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
589
|
-
This is free software, and you are welcome to redistribute it
|
590
|
-
under certain conditions; type `show c' for details.
|
591
|
-
|
592
|
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
593
|
-
parts of the General Public License. Of course, the commands you use may
|
594
|
-
be called something other than `show w' and `show c'; they could even be
|
595
|
-
mouse-clicks or menu items--whatever suits your program.
|
596
|
-
|
597
|
-
You should also get your employer (if you work as a programmer) or your
|
598
|
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
599
|
-
necessary. Here is a sample; alter the names:
|
600
|
-
|
601
|
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
602
|
-
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
603
|
-
|
604
|
-
<signature of Ty Coon>, 1 April 1989
|
605
|
-
Ty Coon, President of Vice
|
606
|
-
|
607
|
-
This General Public License does not permit incorporating your program into
|
608
|
-
proprietary programs. If your program is a subroutine library, you may
|
609
|
-
consider it more useful to permit linking proprietary applications with the
|
610
|
-
library. If this is what you want to do, use the GNU Lesser General
|
611
|
-
Public License instead of this License.
|
612
|
-
|