Sam Hocevar
f5597bce42
* Make cucul_import_file() use cucul_file_t functions.
hace 16 años
Sam Hocevar
8f832a3b47
* Switch a few unsigned int variables to size_t where appropriate.
* Synchronise parameter types in the C++ bindings with the C API.
hace 16 años
Sam Hocevar
ec68a634cf
* Get rid of the last long types in the API.
* Use size_t and ssize_t where appropriate.
hace 16 años
Sam Hocevar
99b5396e8e
* Remove #include <stdint.h> etc. from "common.h". Instead, make sure that
<cucul.h> will provide the C99 types, even if libcaca has been installed.
* Rename what's left of "common.h" to "stubs.h".
* Remove all references to erroneous <inttypes.h> from source files.
hace 16 años
Sam Hocevar
ee60c3086e
* Handle multiframe canvases in the caca importer, courtesy of Ben Wiley
Sittler. Untested.
hace 17 años
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
hace 18 años
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
hace 18 años
Sam Hocevar
77bed4f704
* Got rid of that ugly cv->import member.
hace 18 años
Sam Hocevar
4f4f887080
* Improved vt220 import by adding a persistent context to canvases.
hace 18 años
Sam Hocevar
1756bdf30d
* Improved ANSI importer so that it supports a lot more of what is needed
for basic vt220 emulation.
hace 18 años
Sam Hocevar
6372da2ffc
* Improved ANSI import, especially wrt. drawing context persistence.
hace 18 años
Sam Hocevar
16e95eb980
* When importing an utf-8 file, set background and foreground colours to
the nearest ANSI values for the current attribute. When importing an ANSI
file, force them to lightgray on black.
hace 18 años
Sam Hocevar
51936f585c
* Got rid of HAVE_ERRNO_H ifdefs by defining seterrno()/geterrno() functions.
* More debugging information in the import/export and font functions.
hace 18 años
Sam Hocevar
e656963a9a
* Fixed a bug in the caca importer.
hace 18 años
Sam Hocevar
3243101ff0
* Rename cucul_put*() into cucul_put_*(). Updated all code to reflect that.
hace 18 años
Sam Hocevar
9d6bd7b322
* Do not force the text colour when importing a text file.
hace 18 años
Sam Hocevar
f61bed2bdb
* Add cursor and handle support to canvases. Unused yet.
hace 18 años
Sam Hocevar
0a94f93f95
* If not enough data is available for import, return 0 instead of an error.
hace 18 años
Sam Hocevar
44c286272c
* Minor documentation fixes.
hace 18 años
Sam Hocevar
1cb8d02560
* Set the cucul_import_memory() buffer type to void const * instead of
unsigned char const * so that C++ programs won't complain.
___ __ __ ____ ___ ___ ___
/ _ \| \/ |/ ___| / _ \ / _ \ / _ \
| | | | |\/| | | _ | (_) | (_) | (_) |
| |_| | | | | |_| | \__, |\__, |\__, |
\___/|_| |_|\____| /_/ /_/ /_/
hace 18 años
Sam Hocevar
e3b2d76bd6
* Renamed cucul_import() to cucul_import_memory() and implemented
cucul_import_file().
hace 18 años
Sam Hocevar
3d376d8cad
* Don't use htonl() directly, use common.h's hton32() wrapper.
hace 18 años
Sam Hocevar
17f272c4c4
* Deprecate buffer management. We're back to standard void* memory areas.
hace 18 años
Sam Hocevar
98ee92b2d0
* Updated the caca export format so that it supports multiple frames.
* Updated the caca importer to reflect that; only one frame is read at the
moment.
* Added an "utf8cr" export format for UTF-8 + CRLF exports.
* Updated cacaserver to reflect file format changes.
hace 18 años
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().
hace 18 años
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_*.
hace 18 años
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.
hace 18 años
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().
hace 18 años
Sam Hocevar
bcbc2ee215
* Fix a buffer overflow in the utf-8 cucul_import().
hace 18 años
Jean-Yves Lamoureux
f7cd9f1b27
* "Fixed" infinite loop in ANSI+UTF8 importer, probably totally wrong, but like to be bashed.
hace 18 años
Sam Hocevar
7255c6b034
* Allow to import empty files or files with only empty lines.
hace 18 años
Sam Hocevar
2c906c99e3
* Fix a buffer overflow in the import format autodetection code.
hace 18 años
Sam Hocevar
1771a41bc5
* Allow to import zero-sized canvases.
hace 18 años
Sam Hocevar
26c3ea1aa4
* Removed "This function..." constructs from documentation. Fixed a few
documentation errors or imprecisions.
hace 18 años
Sam Hocevar
1903570ede
* Support for fullwidth glyphs in the UTF-8 importer.
hace 18 años
Sam Hocevar
14ee26ba73
* Set default background to transparent in the ANSI and UTF-8 importers.
hace 18 años
Sam Hocevar
682d2d297b
* Add "utf8" import format.
* Documented "text" import format.
hace 18 años
Sam Hocevar
23afd54c7c
* Fix enumeration layout in the manpage documentation.
hace 18 años
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.
hace 18 años
Sam Hocevar
9137c0a059
* Export the UTF-8 / UTF-32 / CP437 character conversions to applications.
hace 18 años
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.
hace 18 años
Sam Hocevar
8ac089aa7a
* Workaround for illegal ^[[0,0H ANSI escape code.
hace 18 años
Sam Hocevar
ee55871e3f
* If the ANSI file we import does not use the 80 columns, we don't expand
the canvas to 80 columns.
hace 18 años
Sam Hocevar
0a53a92195
* Completed return value and errno handling in libcucul API.
hace 18 años
Jean-Yves Lamoureux
758db0ca7b
* coding style fixes again
hace 18 años
Sam Hocevar
c117cb2411
* Fixed line wrapping on some weird ANSI files.
hace 18 años
Sam Hocevar
d82754532b
* Fixed an ANSI rendering bug related to the bold attribute.
hace 18 años
Sam Hocevar
b3ffcad709
* Minor code reorganisation and documenting.
hace 18 años
Sam Hocevar
af3b09f1f5
* In ANSI, bold only sets the foreground colour to bright, not the
background.
hace 18 años
Jean-Yves Lamoureux
d8fad53ba0
* Really updated doc
hace 18 años