Commit Graph

415 Commits

Author SHA1 Message Date
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
Přemysl Eric Janouch 77878abe90 Renaming continued 2014-10-14 00:24:47 +02:00
Přemysl Eric Janouch e98d9c0fd1 Rename to termo 2014-10-14 00:08:15 +02:00
Přemysl Eric Janouch e330d751a4 Make mode 1015 and 1006 work, prepare for 1005 2014-10-13 23:39:15 +02:00
Přemysl Eric Janouch 456093e4ed Work on mouse support, it's a mess 2014-10-13 01:03:13 +02:00
Přemysl Eric Janouch 5692f32bcf CMake-ify, rename to termkey2 for the time being 2014-10-09 23:47:24 +02:00
Přemysl Eric Janouch 3465d5553f Make the tests work again
Our UTF-8 parsing now behaves differently, though.
2014-09-28 13:03:04 +02:00
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
2014-09-28 03:59:12 +02:00
Přemysl Eric Janouch cac1f8373b Less code duplication 2014-09-23 03:05:01 +02:00
Přemysl Eric Janouch c0cc27c555 Introduce isatty(3) 2014-09-23 03:05:01 +02:00
Přemysl Eric Janouch 75d3388a35 Introduce bsearch(3) 2014-09-23 03:05:01 +02:00
Přemysl Eric Janouch 56f7847ce3 Add -Wextra 2014-09-23 03:05:01 +02:00
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.
2014-09-23 03:05:01 +02:00
Paul LeoNerd Evans 7909067ac0 Be a little more lenient in locale env.var. testing for UTF-8ness 2014-03-05 01:23:16 +00:00
Paul LeoNerd Evans 8aa5b7acb5 Unit tests should use .code.codepoint/.sym instead of not .code.number when appropriate 2014-03-05 01:11:45 +00:00
Paul LeoNerd Evans 97e0e9cde2 Try tinfo before ncursesw (partially from c2dd8f247a) [thanks o11c] 2014-03-04 14:04:11 +00:00
Paul LeoNerd Evans d775d2a5ae Make header compatible with C++ (from ddd7b0c5aa) [thanks o11c] 2014-03-04 13:59:53 +00:00
Paul LeoNerd Evans a91f511f27 Look for .utf8 in locale variables as well as .UTF-8 2014-01-23 23:57:19 +00:00
Paul LeoNerd Evans ff8d714142 Print UTF-8/RAW mode on startup; print 'Key ' before normal keys to debug UTF-8 parse errors 2014-01-23 23:56:41 +00:00
Paul LeoNerd Evans ab4c1c3d3e Bump VERSION to 0.17 2014-01-06 18:02:48 +00:00
Paul LeoNerd Evans 11e6cf7497 Better abstraction of C compiler by using the $(CC) Make variable 2014-01-06 17:55:58 +00:00
Paul LeoNerd Evans 4fd397af2c Invoke libtool cc instead of libtool gcc, for those platforms now using clang (FreeBSD 10) 2014-01-05 19:48:42 +00:00
Paul LeoNerd Evans d97617963d Look for \.UTF-8 only in the first env. var found from LANG, LC_MESSAGES, LC_ALL 2014-01-05 18:23:46 +00:00
Paul LeoNerd Evans 8bed1fdbf0 Add TERMKEY_FORMAT_URWID shortcut [thanks Romain Chossart] 2013-08-26 18:51:29 +01:00
Paul LeoNerd Evans e3d0baa846 Bugfix to snprint_cameltospaces() when given a short buffer [thanks Romain Chossart] 2013-08-26 18:46:01 +01:00
Paul LeoNerd Evans e9a1302e4c Delete trailing whitespace in code 2013-08-26 02:35:40 +01:00
Paul LeoNerd Evans f4770f2d8e Docs fix - fullstop at end of sentence 2013-08-26 02:33:49 +01:00
Paul LeoNerd Evans d58faf55b4 Fix comment about 'n' in strpncmp_camel() 2013-08-26 02:30:43 +01:00
Paul LeoNerd Evans a86f23588b Minor doc update - strpkey expects strings, doesn't use them 2013-08-26 02:27:24 +01:00
Paul LeoNerd Evans 8e503baed8 Added TERMKEY_FORMAT_LOWERSPACE for strpkey() also 2013-08-26 02:23:19 +01:00
Paul LeoNerd Evans 3b2d8eb813 Added TERMKEY_FORMAT_LOWERSPACE for strfkey() only 2013-08-26 01:32:35 +01:00
Paul LeoNerd Evans a36648e172 Added TERMKEY_FORMAT_LOWERMOD 2013-08-26 01:14:35 +01:00
Paul LeoNerd Evans 24abb0c59e Added TERMKEY_FORMAT_SPACEMOD 2013-08-26 00:56:07 +01:00
Paul LeoNerd Evans 89ac8b058c Make some more things 'const' that should be 2013-07-15 01:03:35 +01:00
Paul LeoNerd Evans b4067d8afb Updated shared taplib 2013-01-04 17:39:41 +00:00
Paul LeoNerd Evans 5190963f1b Make sure to implement newer event types in debug function 2012-12-06 02:09:03 +00:00
Paul LeoNerd Evans 58850dbac2 Bump VERSION to 0.16 2012-11-30 17:10:07 +00:00
Paul LeoNerd Evans 1cdeff872f Further documentation clarifications on the 'code' field of a key event 2012-11-30 17:06:14 +00:00
Paul LeoNerd Evans 0be6f18019 Handle ANSI and DEC mode report CSIs 2012-11-30 16:34:47 +00:00
Paul LeoNerd Evans c00f6cd3c6 Only recognise DECCPR as a position report, so it is distinct from F3 2012-11-30 16:12:26 +00:00
Paul LeoNerd Evans efc5b7e088 Try to handle position reports -and- F3 concurrently.. somehow.. argh 2012-11-30 15:36:06 +00:00
Paul LeoNerd Evans 8152f9e018 Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1 2012-11-30 15:31:04 +00:00
Paul LeoNerd Evans d08c0844a4 Slightly more generic custom CSI handling - name functions just after the letter they parse, so we can multiplex on 'cmd' or other things 2012-11-30 15:23:41 +00:00
Paul LeoNerd Evans fdb44d9796 Moved the other termkey_interpret_*() functions into driver-csi.c where they arguably belong 2012-11-30 15:01:20 +00:00
Paul LeoNerd Evans b87ca771bf Make the generated termkey.h file readonly 2012-11-30 15:00:21 +00:00
Paul LeoNerd Evans d5c3d9c8fe Also interpret an intermediate CSI byte if present 2012-11-30 14:43:00 +00:00
Paul LeoNerd Evans 26912d989b Unit test that CSI initial command also works 2012-11-30 14:37:28 +00:00
Paul LeoNerd Evans 7b3dc4be71 Return a real key type for unrecognised CSI sequences; allow accessing them by termkey_interpret_csi() 2012-11-30 14:35:23 +00:00