Commit Graph

397 Commits

Author SHA1 Message Date
Paul LeoNerd Evans
03371bdd04 Bugfix to termkey_keycmp - implement sense in correct direction 2011-04-07 23:31:43 +01:00
Paul LeoNerd Evans
0a101ff71e Bugfix termkey_strpkey parsing unicode with trailing content 2011-04-07 20:19:34 +01:00
Paul LeoNerd Evans
c626393aeb Assert that termkey_strpkey's return points to endofstring after parse 2011-04-07 20:14:44 +01:00
Paul LeoNerd Evans
692ae5d6f2 Bumped VERSION to 0.7 2011-04-07 17:38:08 +01:00
Paul LeoNerd Evans
4ac0d752c4 Solaris requires #define _XPG6 2011-04-04 22:26:25 +01:00
Paul LeoNerd Evans
3b2861fac9 Refer to strfkey not snprint_key; add links to termkey_keycmp 2011-04-04 19:56:33 +01:00
Paul LeoNerd Evans
5b15abcd01 Fixed another couple of typoes in manpages 2011-04-04 19:06:34 +01:00
Paul LeoNerd Evans
f23a55ab82 Various minor neatenings to manpage formatting 2011-04-03 18:44:48 +01:00
Paul LeoNerd Evans
574754d5f1 Bugfixes to manpage layout - no need to .br when the demo is pulled in a .nf anyway; remember to escape slashes 2011-04-03 00:27:02 +01:00
Paul LeoNerd Evans
ad7d31ead8 Provide termkey_keycmp() for sorting purposes 2011-04-02 15:07:30 +01:00
Paul LeoNerd Evans
0468355389 Docs fix for termkey_strfkey 2011-04-01 14:05:19 +01:00
Paul LeoNerd Evans
d6d74d252f Add a couple more 'const' markings to API functions where appropriate 2011-04-01 13:55:36 +01:00
Paul LeoNerd Evans
88230407fe Adjust termkey_strpkey() API more like strptime(); return pointer to end of recognised section, allows for stream parsing 2011-04-01 13:49:20 +01:00
Paul LeoNerd Evans
dbb13defb7 Provide a termkey_lookup_keyname that can do partial buffer parsing 2011-04-01 13:26:54 +01:00
Paul LeoNerd Evans
6adb2324f5 Initial manpage for termkey_strpkey 2011-04-01 11:11:50 +01:00
Paul LeoNerd Evans
a3b8804018 Ensure strpkey can parse numbered function keys 2011-04-01 10:48:15 +01:00
Paul LeoNerd Evans
59800c356b Unicode codepoint is stored in key->code.codepoint, not code.number 2011-04-01 10:41:44 +01:00
Paul LeoNerd Evans
6424282c4d Partial implementation of termkey_strpkey(3); missing FORMAT_WRAPBRACKET and TYPE_FUNCTION support 2011-04-01 00:50:51 +01:00
Paul LeoNerd Evans
ee69b33c49 Neater implementation of key modifier names for strfkey; put them in a little table 2011-04-01 00:26:02 +01:00
Paul LeoNerd Evans
f1b3dff4c2 Extract UTF-8 sequence parser into its own function, fix bugs, apply unit tests 2011-03-31 23:42:52 +01:00
Paul LeoNerd Evans
739be0e55d Added unit tests for UTF-8 parser 2011-03-31 18:59:07 +01:00
Paul LeoNerd Evans
7c9f24fc8e Updated manpages for function rename sprint_key -> strfkey 2011-03-31 15:42:32 +01:00
Paul LeoNerd Evans
9b97244c54 Added some unit tests for termkey_strfkey(3) 2011-03-31 14:10:35 +01:00
Paul LeoNerd Evans
f17f21752b strfkey should fill in the utf8 member of a key struct if it's empty 2011-03-31 14:07:55 +01:00
Paul LeoNerd Evans
5a6e289d23 #include termkey.h from the correct path in unit tests 2011-03-31 13:51:21 +01:00
Paul LeoNerd Evans
f230bc86fb Added some unit tests for keyname <=> sym constant conversions 2011-03-31 13:43:16 +01:00
Paul LeoNerd Evans
1bf3c958b1 taplib's is_str() should take const char * 2011-03-31 13:42:27 +01:00
Paul LeoNerd Evans
be153dc5ee Added some unit testing for termkey_getkey(3) and friends 2011-03-31 12:47:09 +01:00
Paul LeoNerd Evans
0ea0fb331b is()-like testing for ints and strings 2011-03-31 12:46:06 +01:00
Paul LeoNerd Evans
9d7f0037a8 Remember to exit with exit_status() from unit testing 2011-03-31 12:13:37 +01:00
Paul LeoNerd Evans
3bbda921b7 Created a little Test::More-like library for TAP testing 2011-03-31 12:11:19 +01:00
Paul LeoNerd Evans
620038af72 bzr ignore t/*.t 2011-03-31 11:41:14 +01:00
Paul LeoNerd Evans
c228335bca Created a unit-testing system using perl's prove 2011-03-31 11:38:40 +01:00
Paul LeoNerd Evans
26ef76349e Renamed snprint_key() to strfkey(); provide redirection trampoline 2011-03-31 11:08:43 +01:00
Paul LeoNerd Evans
280047e745 Minor whitespace fixes in termkey.h.in 2011-03-31 11:06:21 +01:00
Paul LeoNerd Evans
824e7e157a Provide guarded extern "C" { ... } wrapper for C++ compilers 2011-03-30 20:32:51 +01:00
Paul LeoNerd Evans
f93587a4c7 C++ compilers don't like trailing commas in enums; remove them 2011-03-30 20:31:26 +01:00
Paul LeoNerd Evans
391f795c67 include <curses.h> before <term.h> as it's required in that order on Solaris 2011-03-30 20:24:06 +01:00
Paul LeoNerd Evans
a0f86dcd98 Bumped VERSION_MINOR to 0.6 2011-03-24 00:03:41 +00:00
Paul LeoNerd Evans
9f0ef4953d Don't steal Ctrl-C from the kernel by default (so leave SIGINT enabled); add a flag to take it if required 2011-03-23 23:20:24 +00:00
Paul LeoNerd Evans
a71f68dd57 Interpret space as Unicode by default, add a flag to make it symbolic instead 2011-03-23 22:17:25 +00:00
Paul LeoNerd Evans
ba0c32e8d8 Allow formatting the mouse position when rendering an event to a string 2009-11-27 15:07:05 +00:00
Paul LeoNerd Evans
571e5b701f Make DEBUG=1 mode work with mouse events 2009-11-27 14:56:38 +00:00
Paul LeoNerd Evans
0ae5aea7ac Moved code around so DEBUG=1 actually compiles again 2009-11-27 14:50:58 +00:00
Paul LeoNerd Evans
24f9711846 Return opaque mouse events in the key structure; add a function to interpret this into its component fields 2009-11-27 14:36:29 +00:00
Paul LeoNerd Evans
6dc2b9c72b Implement mouse catching also in CSI driver, in case xterm-alike terminal without 'key_mouse' terminfo string 2009-11-26 00:33:30 +00:00
Paul LeoNerd Evans
c4bc0486d4 Moved mouse parsing code out of driver-ti.c into core termkey.c 2009-11-26 00:27:58 +00:00
Paul LeoNerd Evans
bdc22b8b3d Remember to zero key->modifiers for mouse events 2009-11-25 14:46:19 +00:00
Paul LeoNerd Evans
ade9d760d3 Supply --tag=CC to libtool to inform it we're a C library; in case it doesn't detect that (mumble openbsd mumble) 2009-11-25 14:36:44 +00:00
Paul LeoNerd Evans
7d5b64ff3d Bumped VERSION_MINOR to 0.4 2009-11-25 02:31:10 +00:00