Sam Hocevar
a18e28d43e
Update copyright information and changelog
pirms 3 gadiem
Sam Hocevar
5957d69900
Upgrade autoconf scripts
pirms 3 gadiem
Sam Hocevar
558812d3fe
Update copyright information.
pirms 8 gadiem
Sam Hocevar
cdfba0133b
Revert setlocale() effect as soon as possible. Closes #12 .
The Xlib and ncurses libraries query the LC_CTYPE locale value to guess
the usable character set. If the calling program did not call setlocale(),
that character set will be severely limited. Extensive Unicode support
is a reasonable libcaca user expectation.
The locale is restored as soon as possible, once the window or terminal
have been initialised. Unfortunately, the effect of setlocale() is process-
wide, and may affect other threads. This is now documented.
Note also that both Xlib and ncurses ignore the effects of uselocale()
which would have been the thread-safe solution to this problem.
pirms 8 gadiem
Sam Hocevar
44317430a1
misc: some source code cleanup.
pirms 10 gadiem
Alex Foulon
237f946a2e
Fixed character attribute in ncurses driver.
pirms 11 gadiem
Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
pirms 12 gadiem
Sam Hocevar
d736507785
build: fix copyright information.
pirms 12 gadiem
Sam Hocevar
8f1c38b695
ncurses: if terminal doesn't support curs_set(2), try curs_set(1).
pirms 13 gadiem
Sam Hocevar
0c16cc92f0
Comply with cygwin's curses.h implementation.
pirms 14 gadiem
Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
pirms 15 gadiem
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
pirms 15 gadiem
Sam Hocevar
231c33acce
Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41 .
pirms 15 gadiem
Sam Hocevar
d5ecfdeb2f
Fix the old "value computed is unused" warning triggered by ncurses.
pirms 15 gadiem
Sam Hocevar
1f5518f842
Rename caca_get_cursor_x() and caca_get_cursor_y() to caca_wherex() and
caca_wherey(), in order to match the old <conio.h> naming scheme.
pirms 15 gadiem
Sam Hocevar
ed360faabe
Add a comment to the ncurses driver to remember fix the GCC warning.
pirms 15 gadiem
Sam Hocevar
1d60711ac4
Mark the whole canvas as dirty when a dirty rectangle aware driver is
attached to it.
pirms 15 gadiem
Sam Hocevar
ea99175a2f
Change the dirty rectangle API once again so that calling applications get
a more natural (x,y,w,h) 4-tuple to handle.
pirms 15 gadiem
Sam Hocevar
0c7fd89e3a
Add dirty rectangle support to the ncurses and VGA drivers.
pirms 15 gadiem
Sam Hocevar
e1562a8d46
libcaca: move codecs and import/export functions into subdirectories.
pirms 16 gadiem
Sam Hocevar
f61816ceb7
Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.
pirms 16 gadiem
Sam Hocevar
4ea785f818
* Remove all unsigned ints from exported functions. Signed arithmetic is
far better for error checking.
pirms 16 gadiem
Sam Hocevar
ec68a634cf
* Get rid of the last long types in the API.
* Use size_t and ssize_t where appropriate.
pirms 16 gadiem
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.
pirms 16 gadiem
Sam Hocevar
3602fc98be
* The SLang and ncurses drivers now put back the TERM environment variable
if they modified it.
pirms 17 gadiem
Sam Hocevar
e15e962928
* Implement caca_create_display_with_driver() to specify an output driver
without using environment variables..
* Implement caca_get_display_driver() to return the current display's
output driver.
* Add a simple example program to test caca_create_display_with_driver().
pirms 17 gadiem
Sam Hocevar
07b9891afa
* Introduce cucul_get_canvas_chars() and cucul_get_canvas_attrs() to avoid
direct cv->chars and cv->attrs access by display drivers.
pirms 17 gadiem
Sam Hocevar
7362a612c4
* Add cucul_manage_canvas() and cucul_unmanage_canvas(). Display
drivers no longer need to access the cv->refcount private member
and __cucul_set_canvas_size() is no longer needed.
pirms 17 gadiem
Sam Hocevar
9da4d7b000
* Made the caca_event_t structure opaque and created a whole bunch of
functions to access its real data. This is a big API change that will
break your software, sorry :(
pirms 17 gadiem
Sam Hocevar
2149829bdf
* Added as many "const" qualifiers as possible to the public API.
pirms 17 gadiem
Sam Hocevar
31cbfb5bea
* Rename _cucul_set_canvas_size into __cucul_set_canvas_size to prevent
collisions due to symbol mangling.
pirms 17 gadiem
Sam Hocevar
dff5905a85
* When present, include <termios.h> and <unistd.h> to allow the ncurses
driver to build on Solaris. Fix courtesy of Rado S.
pirms 17 gadiem
Sam Hocevar
95e6709b10
* Implemented caca_set_cursor() on the X11, ncurses and S-Lang drivers.
* Use caca_set_cursor() in test/input.c.
pirms 17 gadiem
Sam Hocevar
1c5b493d21
* Patch by Ben Wiley Sittler to use ACS_* special characters in the ncurses
driver.
pirms 17 gadiem
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
pirms 18 gadiem
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
pirms 18 gadiem
Sam Hocevar
9afb3060cc
* Fix OpenBSD build.
pirms 18 gadiem
Sam Hocevar
0dcf397cf4
* Fixed syntax errors.
pirms 18 gadiem
Sam Hocevar
e1a42d9b42
* Added caca_set_cursor(). Not yet functional.
pirms 18 gadiem
Sam Hocevar
519216afa2
* Add support for doublewidth characters even if ncurses or SLang don't know
about them.
pirms 18 gadiem
Sam Hocevar
fcee80f87d
* Factored terminal title setting code.
* Do not try to set the terminal title if TERM=linux.
pirms 18 gadiem
Sam Hocevar
dac2f4d57f
* Implemented caca_set_display_title() for ncurses and S-Lang.
pirms 18 gadiem
Sam Hocevar
8c43b304c9
* Replace _cucul_attr_to_ansi8() with a now documented cucul_attr_to_ansi()
function.
pirms 18 gadiem
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().
pirms 18 gadiem
Sam Hocevar
4711611e3f
* Support for fullwidth glyphs in the libcaca output drivers.
pirms 18 gadiem
Sam Hocevar
bc5415d6a4
* Fixed libcaca prototypes so that all functions use the errno mechanism
and return a value.
pirms 18 gadiem
Sam Hocevar
ba28ea75f5
* UTF-8 input support for ncurses.
* Hack for 16-color support in xfce4-terminal for both ncurses and slang.
pirms 18 gadiem
Sam Hocevar
ec3b082509
* Fixed UTF-8 support in ncurses.
* Set ncurses's priority higher than slang.
pirms 18 gadiem
Sam Hocevar
1f3e745f52
* Minor cosmetic changes in the test programs.
* Code enhancements in the ncurses driver.
* Added a comment to explain why slang has a higher priority than ncurses.
pirms 18 gadiem
Sam Hocevar
a719a1154f
* Got backspace to work with the slang and ncurses drivers in an X
terminal window.
pirms 18 gadiem