deater / ansi2gif Goto Github PK
View Code? Open in Web Editor NEWconvert ASCII/ANSI art to a graphics files
License: GNU General Public License v2.0
convert ASCII/ANSI art to a graphics files
License: GNU General Public License v2.0
ansi2gif.o: En la función gif_the_text': ansi2gif.c:(.text+0x491): referencia a
gdImageCreate' sin definir
ansi2gif.c:(.text+0x4aa): referencia a gdImageCreate' sin definir ansi2gif.c:(.text+0x4d4): referencia a
gdImageColorAllocate' sin definir
ansi2gif.c:(.text+0x4fe): referencia a gdImageColorAllocate' sin definir ansi2gif.c:(.text+0x528): referencia a
gdImageColorAllocate' sin definir
ansi2gif.c:(.text+0x552): referencia a gdImageColorAllocate' sin definir ansi2gif.c:(.text+0x57c): referencia a
gdImageColorAllocate' sin definir
ansi2gif.o:ansi2gif.c:(.text+0x5a6): más referencias a gdImageColorAllocate' sin definir a continuación ansi2gif.o: En la función
gif_the_text':
ansi2gif.c:(.text+0xa99): referencia a gdImageRectangle' sin definir ansi2gif.c:(.text+0xaaa): referencia a
gdImageGif' sin definir
ansi2gif.c:(.text+0xd0d): referencia a gdImageSetPixel' sin definir ansi2gif.c:(.text+0xd71): referencia a
gdImageGif' sin definir
ansi2gif.c:(.text+0xf8e): referencia a gdImageSetPixel' sin definir ansi2gif.c:(.text+0x102a): referencia a
gdImageGif' sin definir
ansi2gif.c:(.text+0x1109): referencia a gdImageSetPixel' sin definir ansi2gif.c:(.text+0x11d2): referencia a
gdImageGif' sin definir
ansi2gif.c:(.text+0x12e4): referencia a gdImageDestroy' sin definir ansi2gif.c:(.text+0x12f1): referencia a
gdImageDestroy' sin definir
ansi2gif.c:(.text+0x1ae4): referencia a gdImagePng' sin definir ansi2gif.c:(.text+0x1dce): referencia a
gdImageColorResolve' sin definir
ansi2gif.c:(.text+0x20fb): referencia a gdImageColorResolve' sin definir ansi2gif.c:(.text+0x2402): referencia a
gdImageGif' sin definir
ansi2gif.c:(.text+0x24da): referencia a gdImageCreateTrueColor' sin definir ansi2gif.c:(.text+0x24ff): referencia a
gdImageColorAllocate' sin definir
ansi2gif.c:(.text+0x252c): referencia a gdImageRectangle' sin definir ansi2gif.c:(.text+0x253d): referencia a
gdImageGif' sin definir
ansi2gif.c:(.text+0x2552): referencia a gdImageDestroy' sin definir ansi2gif.o: En la función
setup_gd_256colors':
ansi2gif.c:(.text.unlikely+0xb6): referencia a gdImageColorAllocate' sin definir ansi2gif.c:(.text.unlikely+0x136): referencia a
gdImageColorAllocate' sin definir
collect2: error: ld returned 1 exit status
make: *** [ansi2gif] Error 1
The file below indicates that this is under the "GPL" license. Can you put something more explicit in a header or README?
For example: "GNU GPL v1 only", "GNU GPL v2 or later" or "GNU GPL v3" and so forth.
https://github.com/deater/ansi2gif/blob/master/ansi2gif-0.11.0.lsm
Heh. Even the LSM spec is vague: http://lsm.qqx.org/LSM.README
Hi Vince/deater,
Thank you for writing ansi2gif
, it's a fantastic little program! I've found a case where it crashes, and I thought you might be interested.
This minimal crashing example, escape-left-bracket-m-segfault.ans.txt, contains the terminal escape code ESC[m
, which causes ansi2gif to segfault.
ESC[0m
is the terminal escape sequence for 'reset graphics mode' or 'reset all color/font attributes'. Unfortulately, some programs instead send Esc[m
, with nothing instead of a digit. I'm not sure whether this is also allowed by the standard (which I couldn't find anywhere), but it a search on searchcode.com suggests it is common. Parsing ESC[m
without crashing, and interpreting it as ESC[0m
, should fix the issue.
I'm afraid I don't know enough of C myself to submit a patch. Please don't feel obliged to fix this, though; and thank you for all your work polishing ansi2gif
.
Kind regards,
Sietse
P.s. Because these terminal escape codes are quite hard to google, and because there is huge fragmentation in how they are spelled out, I'd like to put a few variant spellings here so that future googlers can easily find it.
ESC[0m
, ESC[m
ESC [ 0 m
, ESC [ m
\[[0m
, \[[m
,
^[[0m
, ^[[m
Escape left bracket zero m, Escape left bracket m
Escape bracket zero m, Escape bracket m.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.