436 Commits (master)
 

Author SHA1 Message Date
Přemysl Eric Janouch 3456e53a7d Fix the 30mouse test 8 years ago
Přemysl Eric Janouch 1023dd445a CMakeLists.txt: build tests 8 years ago
Přemysl Eric Janouch 11b4d7cb4f Fix rxvt shifted keys and OOB array access 8 years ago
Přemysl Eric Janouch 298bc01ee2 Backport a change from libtermkey
"The Ctrl-H byte (0x08) shouldn't automatically become SYM_BACKSPACE"
8 years ago
Přemysl Eric Janouch 1ef250cd7e Miscellaneous little changes 8 years ago
Přemysl Eric Janouch b1a0bca294 Travis CI: Try enabling Coverity scan 8 years ago
Přemysl Eric Janouch 28bb257eeb Add Travis CI configuration 8 years ago
Přemysl Eric Janouch a9c0ea0e07 Fix static linking into a shared library 8 years ago
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).
9 years ago
Přemysl Eric Janouch e8b9c654af Mark a TODO 9 years ago
Přemysl Eric Janouch 6352428e85 Qt Creator screwed up formatting 9 years ago
Přemysl Eric Janouch 788b252407 Update the README 9 years ago
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.
9 years ago
Přemysl Eric Janouch 5a80bceec9 Make mouse data signed
Because urxvt can output zero coordinates, meaning -1.
9 years ago
Přemysl Eric Janouch b8337b5b18 demo-draw.c: app_data_t -> app_context_t 9 years ago
Přemysl Eric Janouch 2f8a39ed64 Better support for rxvt input 9 years ago
Přemysl Eric Janouch 64188f1fcf Revert "Don't bother with endianity"
It makes iconv() output the byte order mark first...
9 years ago
Přemysl Eric Janouch f1f9a00cda Add support for setting the mouse protocol 9 years ago
Přemysl Eric Janouch 70bcfde021 Add a demo for drawing in curses 9 years ago
Přemysl Eric Janouch 86025fcf6f Rewrite termo_interpret_mouse() 9 years ago
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).
9 years ago
Přemysl Eric Janouch d9b20f7586 Alignment 9 years ago
Přemysl Eric Janouch d70dd571d3 Fix build of the GLib demo 9 years ago
Přemysl Eric Janouch 828f03a063 Get rid of most block comments
They're rather difficult to maintain.
9 years ago
Přemysl Eric Janouch 77878abe90 Renaming continued 9 years ago
Přemysl Eric Janouch e98d9c0fd1 Rename to termo 9 years ago
Přemysl Eric Janouch e330d751a4 Make mode 1015 and 1006 work, prepare for 1005 9 years ago
Přemysl Eric Janouch 456093e4ed Work on mouse support, it's a mess 9 years ago
Přemysl Eric Janouch 5692f32bcf CMake-ify, rename to termkey2 for the time being 9 years ago
Přemysl Eric Janouch 3465d5553f Make the tests work again
Our UTF-8 parsing now behaves differently, though.
9 years ago
Přemysl Eric Janouch 36bc6cd095 Move to iconv
That is the major change in this commit.

Also Ctrl-modified keys now should work in URxvt,
which was surprisingly trivial to achieve.

Coming up next:
 - making sure the tests still work
 - introducing CMake
9 years ago
Přemysl Eric Janouch cac1f8373b Less code duplication 9 years ago
Přemysl Eric Janouch c0cc27c555 Introduce isatty(3) 9 years ago
Přemysl Eric Janouch 75d3388a35 Introduce bsearch(3) 9 years ago
Přemysl Eric Janouch 56f7847ce3 Add -Wextra 9 years ago
Přemysl Eric Janouch b630bf7a5f WIP: Is mine now (^3^)
Seriously though, I've got some issues with how this thing is designed,
as well as with its formatting, and when you add the fact that the
original author wants to merge this thing into his bigger library that
also handles terminal output, which I'll kindly leave to ncurses,
it kind of makes sense for me to do this.

Manpages have been removed as they are going to become obsolete and
they're rather difficult to maintain.  If anything, there will be
Doxygen-generated documentation.

The plan is to throw away any direct UTF-8 support and support all uni-
and multibyte character encodings.  However some unrelated refactoring
is about to come first.
9 years ago
Paul LeoNerd Evans 7909067ac0 Be a little more lenient in locale env.var. testing for UTF-8ness 9 years ago
Paul LeoNerd Evans 8aa5b7acb5 Unit tests should use .code.codepoint/.sym instead of not .code.number when appropriate 9 years ago
Paul LeoNerd Evans 97e0e9cde2 Try tinfo before ncursesw (partially from c2dd8f247a) [thanks o11c] 9 years ago
Paul LeoNerd Evans d775d2a5ae Make header compatible with C++ (from ddd7b0c5aa) [thanks o11c] 9 years ago
Paul LeoNerd Evans a91f511f27 Look for .utf8 in locale variables as well as .UTF-8 10 years ago
Paul LeoNerd Evans ff8d714142 Print UTF-8/RAW mode on startup; print 'Key ' before normal keys to debug UTF-8 parse errors 10 years ago
Paul LeoNerd Evans ab4c1c3d3e Bump VERSION to 0.17 10 years ago
Paul LeoNerd Evans 11e6cf7497 Better abstraction of C compiler by using the $(CC) Make variable 10 years ago
Paul LeoNerd Evans 4fd397af2c Invoke libtool cc instead of libtool gcc, for those platforms now using clang (FreeBSD 10) 10 years ago
Paul LeoNerd Evans d97617963d Look for \.UTF-8 only in the first env. var found from LANG, LC_MESSAGES, LC_ALL 10 years ago
Paul LeoNerd Evans 8bed1fdbf0 Add TERMKEY_FORMAT_URWID shortcut [thanks Romain Chossart] 10 years ago
Paul LeoNerd Evans e3d0baa846 Bugfix to snprint_cameltospaces() when given a short buffer [thanks Romain Chossart] 10 years ago
Paul LeoNerd Evans e9a1302e4c Delete trailing whitespace in code 10 years ago
Paul LeoNerd Evans f4770f2d8e Docs fix - fullstop at end of sentence 10 years ago