Sam Hocevar
42c9518d2a
* Got rid of cucul_ansi_to_attr() and cucul_argb_to_attr() and restored
cucul_set_color() and cucul_set_truecolor() under the new names
cucul_set_color_ansi() and cucul_set_color_argb().
* Renamed cucul_get_color_name() into cucul_ansi_to_str().
18 years ago
Sam Hocevar
0b37a307dd
* Get rid of cucul_set_attr_ansi() and cucul_set_attr_argb and merge the
functionality into cucul_set_attr().
* Add cucul_ansi_to_attr() and cucul_argb_to_attr().
* Rename CUCUL_COLOR_* to CUCUL_*.
18 years ago
Sam Hocevar
aa93ad25f6
* Remove cucul_set_color() from the exported API and replaced all calls
with cucul_set_attr_ansi(). Old application will still compile (but issue
a warning) and run, though.
18 years ago
Sam Hocevar
86301dd48c
* Use the LSB of alpha and blue components to encode additional flags such
as bold or underline. No higher level support for these yet, but at
least everything is consistent.
* Created cucul_set_attr_ansi() and cucul_set_attr_argb() which are bound
to replace cucul_set_color() and cucul_set_truecolor().
18 years ago
Sam Hocevar
bcbc2ee215
* Fix a buffer overflow in the utf-8 cucul_import().
18 years ago
Jean-Yves Lamoureux
f7cd9f1b27
* "Fixed" infinite loop in ANSI+UTF8 importer, probably totally wrong, but like to be bashed.
18 years ago
Sam Hocevar
7255c6b034
* Allow to import empty files or files with only empty lines.
18 years ago
Sam Hocevar
2c906c99e3
* Fix a buffer overflow in the import format autodetection code.
18 years ago
Sam Hocevar
1771a41bc5
* Allow to import zero-sized canvases.
18 years ago
Sam Hocevar
26c3ea1aa4
* Removed "This function..." constructs from documentation. Fixed a few
documentation errors or imprecisions.
18 years ago
Sam Hocevar
1903570ede
* Support for fullwidth glyphs in the UTF-8 importer.
18 years ago
Sam Hocevar
14ee26ba73
* Set default background to transparent in the ANSI and UTF-8 importers.
18 years ago
Sam Hocevar
682d2d297b
* Add "utf8" import format.
* Documented "text" import format.
18 years ago
Sam Hocevar
23afd54c7c
* Fix enumeration layout in the manpage documentation.
18 years ago
Sam Hocevar
9b39376fd4
* Fix a bug in the ANSI importer. We need to set the proper fg/bg colours
before calling cucul_set_canvas_size(), otherwise it'll fill the new area
with the current values.
18 years ago
Sam Hocevar
9137c0a059
* Export the UTF-8 / UTF-32 / CP437 character conversions to applications.
18 years ago
Sam Hocevar
7754db5ccf
* Changed cucul_putchar's prototype so that it accepts a 32-bit unsigned
int which shall be used as an UTF-32 character. We do not have any casting
problems due to the signedness of chars because all characters were
ASCII (ie. <= 0x7f) beforehands.
18 years ago
Sam Hocevar
8ac089aa7a
* Workaround for illegal ^[[0,0H ANSI escape code.
18 years ago
Sam Hocevar
ee55871e3f
* If the ANSI file we import does not use the 80 columns, we don't expand
the canvas to 80 columns.
18 years ago
Sam Hocevar
0a53a92195
* Completed return value and errno handling in libcucul API.
18 years ago
Jean-Yves Lamoureux
758db0ca7b
* coding style fixes again
18 years ago
Sam Hocevar
c117cb2411
* Fixed line wrapping on some weird ANSI files.
18 years ago
Sam Hocevar
d82754532b
* Fixed an ANSI rendering bug related to the bold attribute.
18 years ago
Sam Hocevar
b3ffcad709
* Minor code reorganisation and documenting.
18 years ago
Sam Hocevar
af3b09f1f5
* In ANSI, bold only sets the foreground colour to bright, not the
background.
18 years ago
Jean-Yves Lamoureux
d8fad53ba0
* Really updated doc
18 years ago
Jean-Yves Lamoureux
7ed107c9fe
* Fixed documentation for import
18 years ago
Sam Hocevar
38c4a8b608
* Implemented cucul_load_file() and cucul_load_memory() to load respectively
a file and a memory area into a libcucul buffer.
* Changed the cucul_import_canvas() prototype so that it uses libcucul
buffers instead of simple memory areas.
18 years ago
Sam Hocevar
89355c1e39
* Argh, _really_ fixed the uninitialised variable.
18 years ago
Sam Hocevar
fb928813b2
* Fixed an uninitialised variable.
18 years ago
Sam Hocevar
d6e556e5c6
* Fixed our buffer overflow in the ANSI parser by simply skipping control
sequences longer than 100 characters.
* Documented the escape sequence format.
18 years ago
Sam Hocevar
5e18b3450f
* More robust ANSI sequence argument parser. Detects private sequences and
intermediate bytes.
18 years ago
Jean-Yves Lamoureux
2450e5ea28
* Fixed warning in a clever and tested way. Bordel de merde.
18 years ago
Sam Hocevar
e766c1d028
* Coding style.
18 years ago
Sam Hocevar
5fc912073b
* No way, dude. You cannot declare x and y unsigned if you test for (x < 0).
18 years ago
Jean-Yves Lamoureux
579b928b7e
* Fixed warnings in ansi importer
18 years ago
Sam Hocevar
dce6200136
* More cleaning up of the ANSI loader. Fixed reverse video.
18 years ago
Jean-Yves Lamoureux
ad6543c152
* Improved ANSI format detection
18 years ago
Sam Hocevar
c3bbd62830
* Really fixed bold in ANSI loader, and removed dead code.
18 years ago
Sam Hocevar
e499f61ff9
* Simplified _manage_modifiers() a bit.
18 years ago
Sam Hocevar
bdfd1a250d
* Fixed bold support in ANSI loader.
18 years ago
Sam Hocevar
0a5bc9b61d
* A few fixes in the ANSI interpreter.
18 years ago
Sam Hocevar
061d2d35a4
* Got rid of _update_canvas_size().
18 years ago
Jean-Yves Lamoureux
e5ea6fb7cf
* _updated_coding_style(aBit);
18 years ago
Sam Hocevar
3f7362eabb
* Ahahaha. Meet the "optimisation" that breaks everything.
18 years ago
Sam Hocevar
930abfc743
* Small optimisation in import_text().
18 years ago
Sam Hocevar
55efedc1b2
* Really minor coding style fixes in the ANSI importer.
18 years ago
Jean-Yves Lamoureux
2e167ab614
* Added preliminary ANSI importer, added import formats autodection
18 years ago
Sam Hocevar
5cb4d4dedf
* Removed duplicate uint*_t defines from *_internal.h and included common.h
in all .c files that needed it.
18 years ago
Sam Hocevar
7841bb6b50
* Added a simple "text" importer, until the cool ANSI importer arrives.
18 years ago