Commit Graph

417 Commits

Author SHA1 Message Date
Paul LeoNerd Evans 5fc3aff57a Added a unit test to assert the correct behaviour of FLAG_SPACESYMBOL from waitkey 2011-08-27 19:29:34 +01:00
Paul LeoNerd Evans 23fefe409a <poll.h> on Solaris needs _XOPEN_SOURCE 600 to ensure it gets sigset_t - Petr Pavlu 2011-08-25 22:52:06 +01:00
Paul LeoNerd Evans 427a98693e optarg and friends want _XOPEN_SOURCE 600, and <unistd.h> - Petr Pavlu 2011-08-25 22:49:51 +01:00
Paul LeoNerd Evans 447a3e7ab9 strdup() needs 'define _XOPEN_SOURCE 600 - Petr Pavlu 2011-08-25 22:49:17 +01:00
Paul LeoNerd Evans 8efef8e088 Ensure c_cc[VMIN] and c_cc[VTIME] are properly defined, because Solaris seems not to set them - Petr Pavlu 2011-08-25 22:41:43 +01:00
Paul LeoNerd Evans 19122bb195 Link against -lcurses not -lncurses, because these two might be different on some OSes (e.g. Solaris) - Petr Pavlu 2011-08-25 22:39:06 +01:00
Paul LeoNerd Evans 0bafe17082 Bumped VERSION to 0.9 2011-08-25 19:13:21 +01:00
Paul LeoNerd Evans 1b8234e342 Provide a flag to return RES_ERROR even on signal (EINTR); without it, retry the operation 2011-08-25 10:48:41 +01:00
Paul LeoNerd Evans 7a2b79a640 Provide a new result value, TERMKEY_RES_ERROR to indicate an IO error - preserve errno 2011-08-18 11:20:41 +01:00
Paul LeoNerd Evans 01e5795098 Include a LICENSE file 2011-07-01 17:05:35 +01:00
Paul LeoNerd Evans 0686e9a51c Put LIBDIR and INCDIR directly in termkey.pc; don't indirect via PREFIX as it might be incorrect 2011-07-01 17:04:12 +01:00
Paul LeoNerd Evans b30f946117 Mouse position coordinates are unsigned 2011-06-16 17:07:47 +01:00
Paul LeoNerd Evans 6e99f8ab85 Ignore VDSUSP as a signal-sending key too, if platform defines it 2011-05-28 11:55:46 +01:00
Paul LeoNerd Evans d3f441330b sscanf'ing a size_t requires %zn 2011-05-28 11:53:00 +01:00
Paul LeoNerd Evans 650b4518b4 Bumped VERSION to 0.8 2011-05-24 18:18:57 +01:00
Paul LeoNerd Evans ac14d7b504 Gracefully ignore read() yielding EINTR rather than bailing out 2011-05-24 18:17:15 +01:00
Paul LeoNerd Evans dad0e5019c Use _POSIX_VDISABLE rather than hardcoded 0 to disable individual entries in termios.c_cc; most BSDs use 0xff rather than 0 for this value 2011-05-24 16:45:10 +01:00
Paul LeoNerd Evans 6b17f3f620 Disable ISIG mode entirely if FLAG_CTRLC is set 2011-05-24 16:40:19 +01:00
Paul LeoNerd Evans 41e9e0d39e Also handle new 'fixterms' spec CSI codepoint;modifiers u encoding 2011-05-09 16:43:05 +01:00
Paul LeoNerd Evans e90d8f45d7 demo.c needs to enable CTRLC flag to shut down mouse mode on exit 2011-04-26 08:28:26 +01:00
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