Steve Lhomme
43a0870bbb
win32: use CreateFile2 when compiling for Win8+
The API is always available in Win8+ even in UWP builds, unlike CreateFileW.
The API is pretty much the same. CONOUT is also supported [1].
[1] https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2#consoles
пре 2 година
Steve Lhomme
3b4670c82c
win32: use ANSI calls explicitly
If the environment forces the UNICODE define it will use the wrong call.
пре 2 година
Steve Lhomme
ceed13243b
win32: don't redefine GetCurrentConsoleFont with mingw-w64
It's already defined properly.
пре 2 година
Steve Lhomme
93b558f26b
win32: don't for _WIN32_WINNT to Win2K
If the system allows newer API's we should downversion it.
пре 2 година
Sam Hocevar
bd2cff9e94
Rename some internal functions with _caca prefix to avoid confusion when we export them
пре 4 година
Sam Hocevar
a18e28d43e
Update copyright information and changelog
пре 4 година
Sam Hocevar
96ff990d5e
Better sanity checks when creating 2D buffers ( Closes #43 )
пре 4 година
Sam Hocevar
5957d69900
Upgrade autoconf scripts
пре 4 година
Bastian Maerkisch
68b9dcac92
slang driver: enable utf8 auto-detection
The slang internal auto-detection of utf8 is only executed by a call to
SLutf8_enable(-1).
пре 8 година
Sam Hocevar
558812d3fe
Update copyright information.
пре 10 година
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.
пре 10 година
Sam Hocevar
8757e80e43
Try to make Travis-CI tests pass on OS X.
пре 10 година
Sam Hocevar
d3c5bce620
misc: fix unit test failures.
пре 10 година
Sam Hocevar
55f85166e5
x11: replace deprecated XKeycodeToKeysym() with XLookupKeysym().
пре 10 година
artygus
239b223fff
x11 driver: handle errors caused by missing locales
пре 10 година
Sam Hocevar
44317430a1
misc: some source code cleanup.
пре 11 година
Alex Foulon
237f946a2e
Fixed character attribute in ncurses driver.
пре 13 година
Alex Foulon
34d172f0f2
Fixed typo in driver/x11.c.
пре 13 година
Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
пре 13 година
Sam Hocevar
75fd8cd06f
win32: improvements to the Win32 driver by Bastian Märkisch <bmaerkisch@web.de>:
- Save and correctly restore console input mode, ie. do not
change settings of the original console.
- Fix hiding of cursor.
- Free console again if the driver actually created a new one.
- Default canvas size is current window size.
- Base calculation on current font.
- Properly handle press and release events of up to 5 mouse buttons.
- Map right mouse button to button #3 . This is a change in behaviour,
which is desirable for cross-platform codes.
- Generate two click events for double mouse clicks.
- Mouse wheel support, creates button press events. Button numbers
are identical to X11 mappings.
- Handle window buffer resize events.
пре 13 година
Sam Hocevar
d736507785
build: fix copyright information.
пре 13 година
Sam Hocevar
8f1c38b695
ncurses: if terminal doesn't support curs_set(2), try curs_set(1).
пре 14 година
Sam Hocevar
9b513e786c
Fix a bug in our Xutf8LookupString() usage.
пре 15 година
Sam Hocevar
0c16cc92f0
Comply with cygwin's curses.h implementation.
пре 15 година
Pascal Terjan
d7477e8a04
* Do not force output to be in UTF-8, some people have not switched yet...
пре 15 година
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
пре 15 година
Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
пре 16 година
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
пре 16 година
Sam Hocevar
231c33acce
Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41 .
пре 16 година
Sam Hocevar
827c233769
Deduce X11 font size from a relevant sample to avoid oversized font
cells. Fixes bug #21 (X11 Unicode support).
пре 16 година
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.
пре 16 година
Sam Hocevar
84fb312769
Use XwcDrawString in the X11 driver if font sets are available.
пре 16 година
Sam Hocevar
095f62878b
Allow the X11 driver to display Unicode characters if they are in the
current font (addresses #21 ).
пре 16 година
Sam Hocevar
d5ecfdeb2f
Fix the old "value computed is unused" warning triggered by ncurses.
пре 16 година
Sam Hocevar
4bbf44af21
Don't enter glutCheckLoop() from gl_get_event() if there is already an
event available. This increases the framerate when using OpenGL.
пре 16 година
Sam Hocevar
9b6424b385
Pass Ctrl-C as a keypress to the calling application in the SLang driver.
Original patch courtesy of Romain Bignon.
пре 16 година
Pascal Terjan
ad76a4e717
* Fix Delete key with X11 driver
пре 16 година
Jean-Yves Lamoureux
0a8b2d04d5
* Remove trailing spaces (bouh!)
пре 16 година
Jean-Yves Lamoureux
895d027a76
* Don't unblock signals in init of SLang
пре 16 година
Jean-Yves Lamoureux
4ea7d027a7
* Disable SLang's own SIGINT handler
пре 16 година
Pascal Terjan
32a2af5501
* Fix non ASCII input in x11 driver
пре 16 година
Sam Hocevar
7ebd74e3ee
Fix an unlikely crash that may happen when the X server cannot open
the "fixed" font.
пре 16 година
Sam Hocevar
1277691809
Fix a typo in the VGA driver.
пре 16 година
Sam Hocevar
c4bf6b79a8
Include <stdio.h> in the null driver to get NULL.
пре 16 година
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.
пре 16 година
Sam Hocevar
644ee4a78a
Coding style: remove tabs and trailing spaces.
пре 16 година
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.
пре 16 година
Sam Hocevar
ed360faabe
Add a comment to the ncurses driver to remember fix the GCC warning.
пре 16 година
Sam Hocevar
6b22ab776c
Add a null driver that does absolutely nothing.
пре 16 година
Sam Hocevar
1d60711ac4
Mark the whole canvas as dirty when a dirty rectangle aware driver is
attached to it.
пре 16 година