Commit Graph

412 Commits

Author SHA1 Message Date
Přemysl Eric Janouch a9b41e41b7
Fix use of an uninitialized value 2016-11-03 02:36:40 +01:00
Přemysl Eric Janouch 059cb81817
Try to fix terminfo loading
It could lead to crashing the PTY under OpenBSD and ncurses.

Fixed some unibiliums leaks while at it.
2016-11-03 02:36:35 +01:00
Přemysl Eric Janouch c1251f3978
Fix condition in demo-glib.c 2016-11-03 02:24:35 +01:00
Přemysl Eric Janouch 258691135f
Use termo_str{f,p}key_utf8 in tests
No need to be locale dependent here.
2016-10-04 13:22:52 +02:00
Přemysl Eric Janouch f7c67b2a2e
Add termo_str{f,p}key_utf8()
Adding back some original UTF-8 handling code.
2016-10-04 13:21:45 +02:00
Přemysl Eric Janouch e13db07eac
Fix mouse mode 1005 support 2016-10-04 13:16:09 +02:00
Přemysl Eric Janouch 4282f3715c
Fix cursor keys etc. in unibilium
unibi_pkey_xmit was the wrong constant.
2016-09-27 23:59:51 +02:00
Přemysl Eric Janouch 9ec09b90c9
Make ASCII NUL imply Ctrl-Space instead of C-@
Seems mostly arbitrary.
2016-07-24 00:41:49 +02:00
Přemysl Eric Janouch 9b7c801c37
Make unibilium work at all 2016-07-24 00:27:25 +02:00
Přemysl Eric Janouch 1f2a32ed97 Fix README 2016-03-14 21:34:11 +01:00
Přemysl Eric Janouch b5c042e11f Fix Travis CI notifications 2016-03-14 20:46:42 +01:00
Přemysl Eric Janouch 1fd2cb3eaa Try to fix Debian/Fedora build 2016-03-14 20:45:46 +01:00
Přemysl Eric Janouch 783b744e8b Try harder to get ncursesw 2016-01-14 20:19:13 +01:00
Přemysl Eric Janouch ef29b7587d Fix error handling in termo_strfkey()
If in any case snprintf() returned a negative value,
we would mishandle it.
2015-10-31 00:00:30 +01:00
Přemysl Eric Janouch 2a351b150d Convert README to AsciiDoc 2015-09-27 01:26:24 +02:00
Přemysl Eric Janouch c03c56c740 Update and fix README 2015-09-27 01:20:11 +02:00
Přemysl Eric Janouch f05e40a30a Don't interpret an n*<Esc> as (n-1)*<Alt>-<Esc> 2015-08-09 14:52:02 +02:00
Přemysl Eric Janouch 0b5d8ecd0d Fix xterm cursor key modifiers 2015-07-25 19:46:42 +02:00
Přemysl Eric Janouch 128524cd2b Fix compiler warnings in test 05read 2015-07-25 19:08:11 +02:00
Přemysl Eric Janouch cd87fee243 Mark some issues 2015-07-25 19:05:23 +02:00
Přemysl Eric Janouch dc7b9efd71 Make cursor keys work better 2015-07-25 19:05:00 +02:00
Přemysl Eric Janouch 477f732bc3 Fix SS3 keysyms 2015-07-25 19:02:57 +02:00
Přemysl Eric Janouch d49fbadd67 Fix off-by-one bug 2015-05-28 20:16:55 +02:00
Přemysl Eric Janouch bc0a71f082 Finally fix all tests
While still supporting rxvt shifted keys.
2015-05-28 20:02:14 +02:00
Přemysl Eric Janouch be1cccd252 Mark an issue that breaks tests 2015-05-27 21:42:21 +02:00
Přemysl Eric Janouch c628a434f6 Fix the 31position test 2015-05-27 21:36:50 +02:00
Přemysl Eric Janouch 3456e53a7d Fix the 30mouse test 2015-05-27 21:31:04 +02:00
Přemysl Eric Janouch 1023dd445a CMakeLists.txt: build tests 2015-05-27 21:30:13 +02:00
Přemysl Eric Janouch 11b4d7cb4f Fix rxvt shifted keys and OOB array access 2015-05-26 21:59:44 +02:00
Přemysl Eric Janouch 298bc01ee2 Backport a change from libtermkey
"The Ctrl-H byte (0x08) shouldn't automatically become SYM_BACKSPACE"
2015-04-11 18:58:24 +02:00
Přemysl Eric Janouch 1ef250cd7e Miscellaneous little changes 2015-04-11 18:58:14 +02:00
Přemysl Eric Janouch b1a0bca294 Travis CI: Try enabling Coverity scan 2015-02-14 22:54:42 +01:00
Přemysl Eric Janouch 28bb257eeb Add Travis CI configuration 2015-02-14 22:47:52 +01:00
Přemysl Eric Janouch a9c0ea0e07 Fix static linking into a shared library 2015-02-14 22:47:20 +01:00
Přemysl Eric Janouch af193ef483 Go with ncursesw if found
It'd be better if the user could choose the exact library, however this
change is actually necessary to support compilation on systems with
only the wide version's headers installed (hello Debian).
2014-11-30 00:37:17 +01:00
Přemysl Eric Janouch e8b9c654af Mark a TODO 2014-11-30 00:36:18 +01:00
Přemysl Eric Janouch 6352428e85 Qt Creator screwed up formatting 2014-11-19 03:37:54 +01:00
Přemysl Eric Janouch 788b252407 Update the README 2014-11-19 03:19:13 +01:00
Přemysl Eric Janouch 2d777dd67e Rewrite the mouse API
I wasn't aware of the fact that 1000, 1002 and 1003 are mutually
exclusive and turn each other off.

Also now it's not needed to set the protocol, it gets set by default.
2014-11-19 03:19:13 +01:00
Přemysl Eric Janouch 5a80bceec9 Make mouse data signed
Because urxvt can output zero coordinates, meaning -1.
2014-11-19 00:45:35 +01:00
Přemysl Eric Janouch b8337b5b18 demo-draw.c: app_data_t -> app_context_t 2014-11-19 00:44:53 +01:00
Přemysl Eric Janouch 2f8a39ed64 Better support for rxvt input 2014-11-19 00:42:59 +01:00
Přemysl Eric Janouch 64188f1fcf Revert "Don't bother with endianity"
It makes iconv() output the byte order mark first...
2014-11-18 22:30:19 +01:00
Přemysl Eric Janouch f1f9a00cda Add support for setting the mouse protocol 2014-10-22 22:23:01 +02:00
Přemysl Eric Janouch 70bcfde021 Add a demo for drawing in curses 2014-10-22 22:22:26 +02:00
Přemysl Eric Janouch 86025fcf6f Rewrite termo_interpret_mouse() 2014-10-18 20:32:45 +02:00
Přemysl Eric Janouch 5ca6b7fb42 Don't bother with endianity
I hope this is correct... works for little endian (which is the odd one here).
2014-10-18 19:11:44 +02:00
Přemysl Eric Janouch d9b20f7586 Alignment 2014-10-18 19:11:08 +02:00
Přemysl Eric Janouch d70dd571d3 Fix build of the GLib demo 2014-10-14 23:20:55 +02:00
Přemysl Eric Janouch 828f03a063 Get rid of most block comments
They're rather difficult to maintain.
2014-10-14 21:19:20 +02:00