Sam Hocevar
d736507785
build: fix copyright information.
hace 12 años
Sam Hocevar
9b513e786c
Fix a bug in our Xutf8LookupString() usage.
hace 13 años
Pascal Terjan
7b4b48187e
* Fix using dead keys on my us_intl keyboard
- Ignore key events when XFilterEvent returns true
- Do not set key to 0 when it is over 128
hace 14 años
Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
hace 14 años
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
hace 15 años
Sam Hocevar
231c33acce
Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41 .
hace 15 años
Sam Hocevar
827c233769
Deduce X11 font size from a relevant sample to avoid oversized font
cells. Fixes bug #21 (X11 Unicode support).
hace 15 años
Sam Hocevar
6d943c6f02
Call setlocale() in the X11 driver to activate the current locale. If it
is an UTF-8 locale, more glyphs are displayed.
hace 15 años
Sam Hocevar
84fb312769
Use XwcDrawString in the X11 driver if font sets are available.
hace 15 años
Sam Hocevar
095f62878b
Allow the X11 driver to display Unicode characters if they are in the
current font (addresses #21 ).
hace 15 años
Pascal Terjan
ad76a4e717
* Fix Delete key with X11 driver
hace 15 años
Pascal Terjan
32a2af5501
* Fix non ASCII input in x11 driver
hace 15 años
Sam Hocevar
7ebd74e3ee
Fix an unlikely crash that may happen when the X server cannot open
the "fixed" font.
hace 15 años
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.
hace 15 años
Sam Hocevar
4f7081153e
Do not add a dirty rectangle at the cursor's position. It's up to the
display driver to clean up its shit. Fixed X11 driver accordingly.
hace 15 años
Sam Hocevar
1d60711ac4
Mark the whole canvas as dirty when a dirty rectangle aware driver is
attached to it.
hace 15 años
Pascal Terjan
de5be87d0e
Don't redraw background for more than the dirty rectangle in x11 driver, we will not redraw foreground there
hace 15 años
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.
hace 15 años
Sam Hocevar
222e165d21
Fix dirty rectangle handling in the X11 and SLang drivers.
hace 15 años
Sam Hocevar
a6b98c2518
Change the dirty rectangle API so that it can handle several rectangles. The
inner implementation still only handles one dirty rectangle, but this way
we can prepare supporting applictions for the future.
hace 15 años
Pascal Terjan
27fffbb33c
Fix empty dirty rectangles detection
hace 15 años
Pascal Terjan
44f5d172f0
* Only redraw dirty rectangle in x11 driver
hace 15 años
Sam Hocevar
e1562a8d46
libcaca: move codecs and import/export functions into subdirectories.
hace 16 años
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.
hace 16 años
Sam Hocevar
4ea785f818
* Remove all unsigned ints from exported functions. Signed arithmetic is
far better for error checking.
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
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().
hace 17 años
Sam Hocevar
b519d05bce
* Export cucul_attr_to_rgb12_bg(), cucul_attr_to_rgb12_fg() and
cucul_attr_to_argb64() (previously _cucul_attr_to_rgb12bg,
_cucul_attr_to_rgb12fg and _cucul_attr_to_argb4) in the official
libcucul API.
* Cleanup complete: libcaca no longer depends on "cucul_internals.h".
hace 17 años
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.
hace 17 años
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.
hace 17 años
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 :(
hace 17 años
Sam Hocevar
2149829bdf
* Added as many "const" qualifiers as possible to the public API.
hace 17 años
Sam Hocevar
31cbfb5bea
* Rename _cucul_set_canvas_size into __cucul_set_canvas_size to prevent
collisions due to symbol mangling.
hace 17 años
Sam Hocevar
95e6709b10
* Implemented caca_set_cursor() on the X11, ncurses and S-Lang drivers.
* Use caca_set_cursor() in test/input.c.
hace 17 años
Sam Hocevar
a6cb886e4a
* Differentiate between • and ● in the X11 rendering overrides.
hace 17 años
Sam Hocevar
1e67bd5400
* Patch by Ben Wiley Sittler for two misrendered glyphs.
hace 17 años
Sam Hocevar
9369bb3cb8
* Slightly nicer code in driver_x11.c.
hace 17 años
Sam Hocevar
8ed49158e8
* X11 driver improvements courtesy of Ben Wiley Sittler. Reworked them a
bit myself, too.
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
e1a42d9b42
* Added caca_set_cursor(). Not yet functional.
hace 18 años
Sam Hocevar
111447fe27
* Blink/Underline/Bold/Italics support in the HTML exporters.
* Underline support in the X11 driver.
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
e03e1d62da
* Allow to create the initial canvas with a zero size. Either the application
resizes it later, or the driver changes it to fit the display.
hace 18 años
Sam Hocevar
4711611e3f
* Support for fullwidth glyphs in the libcaca output drivers.
hace 18 años
Sam Hocevar
0c1746c626
* Renamed the event data member "ucs4" to "utf32" for consistency
with "utf8".
hace 18 años
Sam Hocevar
9f90f3f36d
* Added the long dash and middle dot CP437 characters to the X11 driver.
hace 18 años
Sam Hocevar
3de6dcf5ef
* Added U+25A0 (■) to the CP437 hack in the X11 driver.
hace 18 años
Jean-Yves Lamoureux
7674499822
* removed duplicate code
hace 18 años
Sam Hocevar
20c12d1912
* Wow, we even have Home/End support in X11.
hace 18 años